diff -r fcb676ca077d -r fdbe8253b596 messagingapp/msgui/msgapp/src/msgmainwindow.cpp --- 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 + //--------------------------------------------------------------- // 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