diff options
author | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-28 19:01:34 +0000 |
---|---|---|
committer | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-28 19:01:34 +0000 |
commit | 45b09b9a37236dea6325227a159a0311ff7de85c (patch) | |
tree | ffe6159441cd19c5ebbf83aaf6c4cba8884d6346 /chrome/browser/autocomplete/autocomplete_edit_view_mac.h | |
parent | c3b9c4b69ee265c59a40d0708ed469ff0fc2c102 (diff) | |
download | chromium_src-45b09b9a37236dea6325227a159a0311ff7de85c.zip chromium_src-45b09b9a37236dea6325227a159a0311ff7de85c.tar.gz chromium_src-45b09b9a37236dea6325227a159a0311ff7de85c.tar.bz2 |
[Mac] Handle backspacing out of keyword search.
When the user hits backspace with the caret on the LHS in a keyword
search, should exit keyword search.
[Apple keyboards may label what I'm calling "backspace" as "delete".
The wide key above |\ key.]
http://crbug.com/20286
TEST=Type www.google.com, then tab to enter keyword search. Type some
text. Select-all and hit backspace, should stay in keyword mode.
Type some text, backspace should work as normal. Type some text,
position caret at LHS, backspace should take you out of keyword mode.
Review URL: http://codereview.chromium.org/180009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24767 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_edit_view_mac.h')
-rw-r--r-- | chrome/browser/autocomplete/autocomplete_edit_view_mac.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_mac.h b/chrome/browser/autocomplete/autocomplete_edit_view_mac.h index 0c0cb2b..e3c6372 100644 --- a/chrome/browser/autocomplete/autocomplete_edit_view_mac.h +++ b/chrome/browser/autocomplete/autocomplete_edit_view_mac.h @@ -116,6 +116,12 @@ class AutocompleteEditViewMac : public AutocompleteEditView { // if so. Returns true if the tab should be eaten. bool OnTabPressed(); + // Called when the user hits backspace in |field_|. Checks whether + // keyword search is being terminated. Returns true if the + // backspace should be intercepted (not forwarded on to the standard + // machinery). + bool OnBackspacePressed(); + void AcceptInput(WindowOpenDisposition disposition, bool for_drop); // Helper for LocationBarViewMac. Selects all in |field_|. |