I forgot that Jellybean has some wacky changes on the onKeyUp and onKeyDown events, fixing CB-1181

This commit is contained in:
Joe Bowser 2012-08-02 12:51:48 -07:00
parent ecd6ca0172
commit 81ab0a414f

View File

@ -730,9 +730,6 @@ public class CordovaWebView extends WebView {
@Override @Override
public boolean onKeyUp(int keyCode, KeyEvent event) public boolean onKeyUp(int keyCode, KeyEvent event)
{ {
Log.d(TAG, "KeyDown has been triggered on the view");
// If back key // If back key
if (keyCode == KeyEvent.KEYCODE_BACK) { if (keyCode == KeyEvent.KEYCODE_BACK) {
// If back key is bound, then send event to JavaScript // If back key is bound, then send event to JavaScript
@ -768,8 +765,8 @@ public class CordovaWebView extends WebView {
return super.onKeyUp(keyCode, event); return super.onKeyUp(keyCode, event);
} }
Log.d(TAG, "KeyUp has been triggered on the view"); //Does webkit change this behaviour?
return false; return super.onKeyUp(keyCode, event);
} }