equal
deleted
inserted
replaced
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); |