From 8b0b77233682547e6a496ec25db32c2d12b68241 Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Thu, 26 Aug 2010 14:35:44 -0400 Subject: [PATCH] DO NOT MERGE -- copy on tapping outside of selected text in gmail Text can be selected in gmail by choosing Select Text from the menu and dragging the selection. There's no pretend action bar like there is in the Browser to commit the selection. When tapping outside of the selection, copy the text, if the client (like gmail) has mapped the trackball to the arrow keys. Change-Id: I7dd133fd860d392bb01ec103e379e1f1d2a43e64 http://b/2626451 --- core/java/android/webkit/WebView.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index f8e60ce4b63d3..05c159be0562f 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -5163,6 +5163,9 @@ public class WebView extends AbsoluteLayout if (mSelectingText) { // tapping on selection or controls does nothing if (!nativeHitSelection(contentX, contentY)) { + if (mMapTrackballToArrowKeys) { // gmail + copySelection(); + } selectionDone(); } break;