messagingapp/msgui/msgapp/src/msgmainwindow.cpp
changeset 62 fdbe8253b596
parent 37 518b245aa84c
child 73 ecf6a73a9186
--- a/messagingapp/msgui/msgapp/src/msgmainwindow.cpp	Wed Sep 01 14:19:13 2010 +0530
+++ b/messagingapp/msgui/msgapp/src/msgmainwindow.cpp	Tue Sep 07 13:28:39 2010 +0530
@@ -23,6 +23,8 @@
 #include "msgsendserviceinterface.h"
 #include "conversationsengine.h"
 
+#include <QKeyEvent>
+
 
 //---------------------------------------------------------------
 // MsgMainWindow::MsgMainWindow
@@ -68,4 +70,24 @@
 {   
      return mViewManager; 
 }
+
+//---------------------------------------------------------------
+// MsgMainWindow::keyPressEvent
+// @see header
+//---------------------------------------------------------------
+void MsgMainWindow::keyPressEvent(QKeyEvent *event)
+{
+    bool eventHandled = false;
+    if (Qt::Key_Yes == event->key()) {
+        eventHandled = mViewManager->handleKeyEvent(event->key());
+    }
+
+    if (eventHandled) {
+        event->accept();
+    }
+    else {
+        HbMainWindow::keyPressEvent(event);
+    }
+
+}
 // End of file