diff options
author | John Reck <jreck@google.com> | 2012-04-19 18:08:25 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2012-04-19 18:08:25 -0700 |
commit | 997b1b7695822cb2dc2deca0458a5649d00b9953 (patch) | |
tree | f48d5a8c5bc80ce7ea650d50ffec61c69270afca /src/com/android/browser/Controller.java | |
parent | 2b71d6dad1cbdc84da3eed140429a102971a1106 (diff) | |
download | packages_apps_Browser-997b1b7695822cb2dc2deca0458a5649d00b9953.zip packages_apps_Browser-997b1b7695822cb2dc2deca0458a5649d00b9953.tar.gz packages_apps_Browser-997b1b7695822cb2dc2deca0458a5649d00b9953.tar.bz2 |
Support fallback key events
Bug: 6023055
Change-Id: Ifc36425d6b09d0938f7e08176a749159c27fe088
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 fcbe387..3ebaa28 100644 --- a/src/com/android/browser/Controller.java +++ b/src/com/android/browser/Controller.java @@ -945,14 +945,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 |