diff options
author | John Reck <jreck@google.com> | 2012-04-20 08:29:55 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-04-20 08:29:55 -0700 |
commit | 1221fcd31fdb3d51232a11622e556ce8ff11cacd (patch) | |
tree | 4db940db6b16428d3a07c5661743c2969556c035 /src/com/android/browser/Controller.java | |
parent | abc01ce257a33415b8955cd20330ca6a5c08f4b6 (diff) | |
parent | 997b1b7695822cb2dc2deca0458a5649d00b9953 (diff) | |
download | packages_apps_Browser-1221fcd31fdb3d51232a11622e556ce8ff11cacd.zip packages_apps_Browser-1221fcd31fdb3d51232a11622e556ce8ff11cacd.tar.gz packages_apps_Browser-1221fcd31fdb3d51232a11622e556ce8ff11cacd.tar.bz2 |
Merge "Support fallback key events"
Diffstat (limited to 'src/com/android/browser/Controller.java')
-rw-r--r-- | src/com/android/browser/Controller.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java index 05ccdd2..36f6a1a 100644 --- a/src/com/android/browser/Controller.java +++ b/src/com/android/browser/Controller.java @@ -950,14 +950,15 @@ public class Controller } @Override - public void onUnhandledKeyEvent(KeyEvent event) { + public boolean onUnhandledKeyEvent(KeyEvent event) { if (!isActivityPaused()) { if (event.getAction() == KeyEvent.ACTION_DOWN) { - mActivity.onKeyDown(event.getKeyCode(), event); + return mActivity.onKeyDown(event.getKeyCode(), event); } else { - mActivity.onKeyUp(event.getKeyCode(), event); + return mActivity.onKeyUp(event.getKeyCode(), event); } } + return false; } @Override |