From 81ab0a414fba2ac949b1f8480cfbb78d7cf3d1e9 Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Thu, 2 Aug 2012 12:51:48 -0700 Subject: [PATCH] I forgot that Jellybean has some wacky changes on the onKeyUp and onKeyDown events, fixing CB-1181 --- framework/src/org/apache/cordova/CordovaWebView.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/framework/src/org/apache/cordova/CordovaWebView.java b/framework/src/org/apache/cordova/CordovaWebView.java index 0ce63c03..fe677f4b 100755 --- a/framework/src/org/apache/cordova/CordovaWebView.java +++ b/framework/src/org/apache/cordova/CordovaWebView.java @@ -730,9 +730,6 @@ public class CordovaWebView extends WebView { @Override public boolean onKeyUp(int keyCode, KeyEvent event) { - - Log.d(TAG, "KeyDown has been triggered on the view"); - // If back key if (keyCode == KeyEvent.KEYCODE_BACK) { // If back key is bound, then send event to JavaScript @@ -768,8 +765,8 @@ public class CordovaWebView extends WebView { return super.onKeyUp(keyCode, event); } - Log.d(TAG, "KeyUp has been triggered on the view"); - return false; + //Does webkit change this behaviour? + return super.onKeyUp(keyCode, event); }