summaryrefslogtreecommitdiffstats
path: root/chrome/views/controls/text_field.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/views/controls/text_field.cc')
-rw-r--r--chrome/views/controls/text_field.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/chrome/views/controls/text_field.cc b/chrome/views/controls/text_field.cc
index 93a41e9..55c2de8 100644
--- a/chrome/views/controls/text_field.cc
+++ b/chrome/views/controls/text_field.cc
@@ -1164,9 +1164,14 @@ void TextField::AboutToRequestFocusFromTabTraversal(bool reverse) {
SelectAll();
}
-// We don't translate accelerators for ALT + numpad digit, they are used for
-// entering special characters.
bool TextField::ShouldLookupAccelerators(const KeyEvent& e) {
+ // TODO(hamaji): Figure out which keyboard combinations we need to add here,
+ // similar to LocationBarView::ShouldLookupAccelerators.
+ if (e.GetCharacter() == VK_BACK)
+ return false; // We'll handle BackSpace ourselves.
+
+ // We don't translate accelerators for ALT + NumPad digit, they are used for
+ // entering special characters.
if (!e.IsAltDown())
return true;