summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/WebKit/android/jni/WebViewCore.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/WebKit/android/jni/WebViewCore.cpp b/Source/WebKit/android/jni/WebViewCore.cpp
index dc919d8..4e20ca1 100644
--- a/Source/WebKit/android/jni/WebViewCore.cpp
+++ b/Source/WebKit/android/jni/WebViewCore.cpp
@@ -2118,6 +2118,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;