diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/WebKit/android/jni/WebViewCore.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/WebKit/android/jni/WebViewCore.cpp b/Source/WebKit/android/jni/WebViewCore.cpp index a2db69d..b0600ed 100644 --- a/Source/WebKit/android/jni/WebViewCore.cpp +++ b/Source/WebKit/android/jni/WebViewCore.cpp @@ -2117,6 +2117,12 @@ void WebViewCore::setSelection(int start, int end) m_mainFrame->editor()->client()); client->setUiGeneratedSelectionChange(true); setSelectionRange(focus, start, end); + if (start != end) { + // Fire a select event. No event is sent when the selection reduces to + // an insertion point + RenderTextControl* control = toRenderTextControl(renderer); + control->selectionChanged(true); + } client->setUiGeneratedSelectionChange(false); WebCore::Frame* focusedFrame = focus->document()->frame(); bool isPasswordField = false; |