summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Scott <phanna@android.com>2009-08-12 09:15:51 -0400
committerPatrick Scott <phanna@android.com>2009-08-12 15:10:45 -0400
commite9fc4494fb04a21df489b8b91731d0acf6ce4ef7 (patch)
tree1108cc42a41bf17e1064a1a94bd172885adf99ee
parent4d7880fe3061ed691d220e64cd9e54a8c7b2d1bf (diff)
downloadpackages_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.java10
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 {