src/hbplugins/inputmethods/hardwareinput/hbhardwareinputnumericqwertyhandler.cpp
changeset 34 ed14f46c0e55
parent 1 f7ac710697a9
equal deleted inserted replaced
31:7516d6d86cf5 34:ed14f46c0e55
    78     focusObject = mInputMethod->focusObject();
    78     focusObject = mInputMethod->focusObject();
    79     if (!focusObject) {
    79     if (!focusObject) {
    80         qDebug("HbHardwareInputNumericQwertyHandler::buttonReleased : no focused editor widget!");
    80         qDebug("HbHardwareInputNumericQwertyHandler::buttonReleased : no focused editor widget!");
    81         return false;
    81         return false;
    82     }
    82     }
    83 	int currentTextCase = focusObject->editorInterface().textCase();
    83     int currentTextCase = focusObject->editorInterface().textCase();
    84 	QChar newChar = QChar(buttonId);
    84     QChar newChar = QChar(buttonId);
    85 	if (currentTextCase == HbTextCaseLower) {
    85     if (currentTextCase == HbTextCaseLower) {
    86         newChar = newChar.toLower();
    86         newChar = newChar.toLower();
    87     } else {
    87     } else {
    88         newChar = newChar.toUpper();
    88         newChar = newChar.toUpper();
    89     }
    89     }
    90     q->commitAndUpdate(newChar);
    90     q->commitAndUpdate(newChar);