[Title] Fix keypad capital issue
[Issue#] P130422-7286
[Problem] Keypad show in capital instantly.
[Cause] set cursor position 0 before insert text
[Solution] ignore temporary cursor position
Change-Id: I22adac5a1c92186725c39eb23ce8da9d45961ff1
void InputMethodContextEfl::updateTextInputState()
{
const EditorState& editor = m_viewImpl->page()->editorState();
+ if (editor.shouldIgnoreCompositionSelectionChange)
+ return;
- if (!editor.shouldIgnoreCompositionSelectionChange) {
- if (editor.isContentEditable && m_useInputMethod)
- showIMFContext(editor);
- else
- hideIMFContext();
- }
+ if (editor.isContentEditable && m_useInputMethod)
+ showIMFContext(editor);
+ else
+ hideIMFContext();
if (m_context)
ecore_imf_context_cursor_position_set(m_context.get(), editor.cursorPosition);
return;
targetFrame->editor()->confirmComposition(compositionString);
+
+#if ENABLE(TIZEN_ISF_PORT)
+ m_page->editorClient()->respondToChangedSelection(targetFrame);
+#endif
}
void WebPage::setComposition(const String& compositionString, const Vector<WebCore::CompositionUnderline>& underlines, uint64_t cursorPosition)
#endif
targetFrame->editor()->setComposition(compositionString, underlines, cursorPosition, 0);
+
+#if ENABLE(TIZEN_ISF_PORT)
+ m_page->editorClient()->respondToChangedSelection(targetFrame);
+#endif
}
void WebPage::cancelComposition()