equal
deleted
inserted
replaced
188 } else { |
188 } else { |
189 mInputMethod->starKeySelected(); |
189 mInputMethod->starKeySelected(); |
190 } |
190 } |
191 return true; |
191 return true; |
192 } |
192 } |
193 else if (buttonId == HbInputButton::ButtonKeyCodeEnter) { |
193 |
194 mInputMethod->closeKeypad(); |
|
195 return true; |
|
196 } |
|
197 if (buttonId == HbInputButton::ButtonKeyCodeShift) { |
194 if (buttonId == HbInputButton::ButtonKeyCodeShift) { |
198 // single tap of shift key toggles prediction status in case insensitive languages |
195 // single tap of shift key toggles prediction status in case insensitive languages |
199 if (!HbInputSettingProxy::instance()->globalInputLanguage().isCaseSensitiveLanguage()) { |
196 if (!HbInputSettingProxy::instance()->globalInputLanguage().isCaseSensitiveLanguage()) { |
200 HbInputSettingProxy::instance()->togglePrediction(); |
197 HbInputSettingProxy::instance()->togglePrediction(); |
201 } else { |
198 } else { |
230 // ButtonKeyCodeSettings should not be propagated to the engine |
227 // ButtonKeyCodeSettings should not be propagated to the engine |
231 if(buttonId == HbInputButton::ButtonKeyCodeSettings) { |
228 if(buttonId == HbInputButton::ButtonKeyCodeSettings) { |
232 return true; |
229 return true; |
233 } |
230 } |
234 if (buttonId != HbInputButton::ButtonKeyCodeDelete && |
231 if (buttonId != HbInputButton::ButtonKeyCodeDelete && |
|
232 buttonId != HbInputButton::ButtonKeyCodeEnter && |
235 mInputMethod->currentKeyboardType() == HbKeyboardSctPortrait) { |
233 mInputMethod->currentKeyboardType() == HbKeyboardSctPortrait) { |
236 q->sctCharacterSelected(QChar(buttonId)); |
234 q->sctCharacterSelected(QChar(buttonId)); |
237 return true; |
235 return true; |
238 } |
236 } |
239 |
237 |