equal
deleted
inserted
replaced
69 if (mInputMethod->focusObject()) { |
69 if (mInputMethod->focusObject()) { |
70 return mInputMethod->focusObject()->editorCursorPosition(); |
70 return mInputMethod->focusObject()->editorCursorPosition(); |
71 } |
71 } |
72 |
72 |
73 return -1; |
73 return -1; |
|
74 } |
|
75 |
|
76 bool HbInputModeHandlerPrivate::isPunctuationKey(const Qt::Key key, const HbKeyboardType keypad) |
|
77 { |
|
78 // Currently, Punctuation key is present only for For ITUT Keypad (i.e. Key_1 is is the punctuation key) |
|
79 if ( (!HbInputUtils::isQwertyKeyboard(keypad)) && (Qt::Key_1 == key) ) { |
|
80 return true; |
|
81 } |
|
82 return false; |
74 } |
83 } |
75 |
84 |
76 void HbInputModeHandlerPrivate::getAndFilterCharactersBoundToKey(QString &allowedChars, HbKeyboardType type, \ |
85 void HbInputModeHandlerPrivate::getAndFilterCharactersBoundToKey(QString &allowedChars, HbKeyboardType type, \ |
77 int key, HbModifiers modifiers) |
86 int key, HbModifiers modifiers) |
78 { |
87 { |
287 QChar HbInputModeHandler::getNthCharacterInKey(int &index, int key, HbKeyboardType type) |
296 QChar HbInputModeHandler::getNthCharacterInKey(int &index, int key, HbKeyboardType type) |
288 { |
297 { |
289 Q_D(HbInputModeHandler); |
298 Q_D(HbInputModeHandler); |
290 HbModifiers modifiers = 0; |
299 HbModifiers modifiers = 0; |
291 int textCase = d->mInputMethod->inputState().textCase(); |
300 int textCase = d->mInputMethod->inputState().textCase(); |
292 if (type != HbKeyboardSctPortrait && (textCase == HbTextCaseUpper || textCase == HbTextCaseAutomatic)) { |
301 if ( (type != HbKeyboardSctPortrait && type != HbKeyboardSctUrl && type != HbKeyboardSctEmail) && |
|
302 (textCase == HbTextCaseUpper || textCase == HbTextCaseAutomatic)) { |
293 modifiers |= HbModifierShiftPressed; |
303 modifiers |= HbModifierShiftPressed; |
294 } |
304 } |
295 |
305 |
296 QString allowedChars; |
306 QString allowedChars; |
297 getAndFilterCharactersBoundToKey(allowedChars,type,key,modifiers); |
307 getAndFilterCharactersBoundToKey(allowedChars,type,key,modifiers); |