diff -r 8ba0afbb4637 -r a15d9966050f messagingapp/msgui/msgapp/src/msgmainwindow.cpp --- a/messagingapp/msgui/msgapp/src/msgmainwindow.cpp Thu Sep 02 20:23:03 2010 +0300 +++ b/messagingapp/msgui/msgapp/src/msgmainwindow.cpp Fri Sep 17 08:28:39 2010 +0300 @@ -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