Bug 704721 - [ICS/Honeycomb] - VKB backspace key dismisses keyboard and deletes two characters only on the URL bar. r=blassey
authorAlex Pakhotin <alexp@mozilla.com>
Thu, 24 Nov 2011 18:19:52 -0800
changeset 83606 2aec00aaf211540e8916a7820e208d1ad5ea7136
parent 83605 ce03d0240a309a9e208c2c3a5723ead7455f861e
child 83607 79f85a955bc485dea536e3965a848f97d8fc672d
push id519
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 00:38:35 +0000
treeherdermozilla-beta@788ea1ef610b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersblassey
bugs704721
milestone11.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 704721 - [ICS/Honeycomb] - VKB backspace key dismisses keyboard and deletes two characters only on the URL bar. r=blassey
mobile/android/base/AwesomeBar.java
--- a/mobile/android/base/AwesomeBar.java
+++ b/mobile/android/base/AwesomeBar.java
@@ -228,17 +228,18 @@ public class AwesomeBar extends Activity
         // by any of the views, which usually means the edit box lost focus
         if (keyCode == KeyEvent.KEYCODE_BACK ||
             keyCode == KeyEvent.KEYCODE_MENU ||
             keyCode == KeyEvent.KEYCODE_SEARCH ||
             keyCode == KeyEvent.KEYCODE_DPAD_UP ||
             keyCode == KeyEvent.KEYCODE_DPAD_DOWN ||
             keyCode == KeyEvent.KEYCODE_DPAD_LEFT ||
             keyCode == KeyEvent.KEYCODE_DPAD_RIGHT ||
-            keyCode == KeyEvent.KEYCODE_DPAD_CENTER) {
+            keyCode == KeyEvent.KEYCODE_DPAD_CENTER ||
+            keyCode == KeyEvent.KEYCODE_DEL) {
             return super.onKeyDown(keyCode, event);
         } else {
             int selStart = -1;
             int selEnd = -1;
             if (mText.hasSelection()) {
                 selStart = mText.getSelectionStart();
                 selEnd = mText.getSelectionEnd();
             }