equal
deleted
inserted
replaced
49 #include "hbinput12keytouchkeyboard.h" |
49 #include "hbinput12keytouchkeyboard.h" |
50 #include "hbinputbasic12keyhandler.h" |
50 #include "hbinputbasic12keyhandler.h" |
51 #include "hbinputprediction12keyhandler.h" |
51 #include "hbinputprediction12keyhandler.h" |
52 #include "hbinputnumeric12keyhandler.h" |
52 #include "hbinputnumeric12keyhandler.h" |
53 |
53 |
54 const int HbSmileyNumberOfRows = 5; |
|
55 const int HbSmileyNumberOfColumns = 5; |
|
56 |
|
57 /*! |
54 /*! |
58 \class HbVirtual12Key |
55 \class HbVirtual12Key |
59 \brief Input method implementations for virtual ITU-T mode in HbInputs framework. |
56 \brief Input method implementations for virtual ITU-T mode in HbInputs framework. |
60 |
57 |
61 It implements the HbInputMethod interface from HbInput framework. This particular |
58 It implements the HbInputMethod interface from HbInput framework. This particular |
383 /*! |
380 /*! |
384 Call back indicating that the keypad is closed. |
381 Call back indicating that the keypad is closed. |
385 */ |
382 */ |
386 void HbVirtual12Key::keypadClosed() |
383 void HbVirtual12Key::keypadClosed() |
387 { |
384 { |
388 if (mOrientationAboutToChange) { |
385 mOrientationAboutToChange = false; |
389 mOrientationAboutToChange = false; |
|
390 } |
|
391 } |
386 } |
392 |
387 |
393 /*! |
388 /*! |
394 Call back indicating that the keypad is opened. |
389 Call back indicating that the keypad is opened. |
395 */ |
390 */ |
409 // We need to commit the inline word when we minimize the keypad |
404 // We need to commit the inline word when we minimize the keypad |
410 mActiveModeHandler->actionHandler(HbInputModeHandler::HbInputModeActionCommit); |
405 mActiveModeHandler->actionHandler(HbInputModeHandler::HbInputModeActionCommit); |
411 if (mCandidatePopup) { |
406 if (mCandidatePopup) { |
412 mCandidatePopup->hide(); |
407 mCandidatePopup->hide(); |
413 } |
408 } |
414 mVkbHost->minimizeKeypad(!stateChangeInProgress()); |
409 |
|
410 // Close input. |
|
411 QInputContext* ic = qApp->inputContext(); |
|
412 if (ic) { |
|
413 QEvent *closeEvent = new QEvent(QEvent::CloseSoftwareInputPanel); |
|
414 ic->filterEvent(closeEvent); |
|
415 delete closeEvent; |
|
416 } |
415 } |
417 } |
416 } |
418 } |
417 } |
419 } |
418 } |
420 } |
419 |
421 |
756 } |
758 } |
757 |
759 |
758 void HbVirtual12Key::selectSpecialCharacterTableMode() |
760 void HbVirtual12Key::selectSpecialCharacterTableMode() |
759 { |
761 { |
760 if (mItutKeypad) { |
762 if (mItutKeypad) { |
761 mItutKeypad->showSmileyPicker(HbSmileyNumberOfRows, HbSmileyNumberOfColumns); |
763 mItutKeypad->showSmileyPicker(); |
762 } |
764 } |
763 } |
765 } |
764 |
766 |
765 /*! |
767 /*! |
766 Slot used by mode handlers to close the candidate popup. |
768 Slot used by mode handlers to close the candidate popup. |