only allow dpad center for key long press

Holding down the enter key on a physical keyboard
doesn't make sense to map to long press; the desktop
doesn't work that way either.

bug:3344108
Change-Id: Icf02940dcadf194357b680ae1e3028751d16a1ea
This commit is contained in:
Cary Clark
2011-02-09 19:33:00 -05:00
parent a81c2193f7
commit 1477b8f34d

View File

@@ -4656,7 +4656,7 @@ public class WebView extends AbsoluteLayout
return false;
}
if (isEnterActionKey(keyCode)) {
if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) {
switchOutDrawHistory();
boolean wantsKeyEvents = nativeCursorNodePointer() == 0
|| nativeCursorWantsKeyEvents();