summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kolb <kolby@google.com>2011-08-16 17:09:27 -0700
committerMichael Kolb <kolby@google.com>2011-08-16 17:13:10 -0700
commit5ae15bd3b32860c471ed4cbfa4ba46b2e1a9911d (patch)
treeb022f39bb06b5d045940092cbfe7edd066f5a009
parent352c02e1adc31d835afbb8dd8910646807164d30 (diff)
downloadpackages_apps_Browser-5ae15bd3b32860c471ed4cbfa4ba46b2e1a9911d.zip
packages_apps_Browser-5ae15bd3b32860c471ed4cbfa4ba46b2e1a9911d.tar.gz
packages_apps_Browser-5ae15bd3b32860c471ed4cbfa4ba46b2e1a9911d.tar.bz2
fix close tab keyboard shortcut
Bug: 5129293 Tab closing is handled twice: as a menu shortcut and in the key handler removed the key handler Change-Id: I436b4bcb380ea4daeeea3a9f317e42142f1b2e69
-rw-r--r--src/com/android/browser/Controller.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java
index 24072c9..cb0d348 100644
--- a/src/com/android/browser/Controller.java
+++ b/src/com/android/browser/Controller.java
@@ -2603,12 +2603,7 @@ public class Controller
break;
// case KeyEvent.KEYCODE_U: // in Chrome: opens source of page
// case KeyEvent.KEYCODE_V: // text view intercepts to paste
- case KeyEvent.KEYCODE_W: // in Chrome: close tab
- if (ctrl) {
- closeCurrentTab();
- return true;
- }
- break;
+// case KeyEvent.KEYCODE_W: // menu
// case KeyEvent.KEYCODE_X: // text view intercepts to cut
// case KeyEvent.KEYCODE_Y: // unused
// case KeyEvent.KEYCODE_Z: // unused