Merge "only allow dpad center for key long press"

This commit is contained in:
Cary Clark
2011-02-09 17:15:10 -08:00
committed by Android (Google) Code Review

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();