diff options
author | Patrick Scott <phanna@android.com> | 2009-08-12 09:15:51 -0400 |
---|---|---|
committer | Patrick Scott <phanna@android.com> | 2009-08-12 15:10:45 -0400 |
commit | e9fc4494fb04a21df489b8b91731d0acf6ce4ef7 (patch) | |
tree | 1108cc42a41bf17e1064a1a94bd172885adf99ee | |
parent | 4d7880fe3061ed691d220e64cd9e54a8c7b2d1bf (diff) | |
download | packages_apps_Browser-e9fc4494fb04a21df489b8b91731d0acf6ce4ef7.zip packages_apps_Browser-e9fc4494fb04a21df489b8b91731d0acf6ce4ef7.tar.gz packages_apps_Browser-e9fc4494fb04a21df489b8b91731d0acf6ce4ef7.tar.bz2 |
Pass unhandled keys up to the main tab.
-rw-r--r-- | src/com/android/browser/TabControl.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/browser/TabControl.java b/src/com/android/browser/TabControl.java index 1df4b74..6c1ac91 100644 --- a/src/com/android/browser/TabControl.java +++ b/src/com/android/browser/TabControl.java @@ -105,6 +105,16 @@ class TabControl { String description, String failingUrl) { mClient.onReceivedError(view, errorCode, description, failingUrl); } + @Override + public boolean shouldOverrideKeyEvent(WebView view, + android.view.KeyEvent event) { + return mClient.shouldOverrideKeyEvent(view, event); + } + @Override + public void onUnhandledKeyEvent(WebView view, + android.view.KeyEvent event) { + mClient.onUnhandledKeyEvent(view, event); + } } // Subclass of WebChromeClient to display javascript dialogs. private class SubWindowChromeClient extends WebChromeClient { |