diff options
author | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-27 19:45:15 +0000 |
---|---|---|
committer | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-27 19:45:15 +0000 |
commit | f06a9ff477f69bc988f48d4da8658c20ec0f8e17 (patch) | |
tree | aa64c3c958cf7a8a71166139f496243d0e61f528 /chrome/browser/autocomplete/autocomplete_edit_view_mac.mm | |
parent | abd4aba8725fdd0e604f727e617105725b709259 (diff) | |
download | chromium_src-f06a9ff477f69bc988f48d4da8658c20ec0f8e17.zip chromium_src-f06a9ff477f69bc988f48d4da8658c20ec0f8e17.tar.gz chromium_src-f06a9ff477f69bc988f48d4da8658c20ec0f8e17.tar.bz2 |
[Mac] Hook up AutocompleteEditViewMac delegate calls properly.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/546107
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37290 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_edit_view_mac.mm')
-rw-r--r-- | chrome/browser/autocomplete/autocomplete_edit_view_mac.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_mac.mm b/chrome/browser/autocomplete/autocomplete_edit_view_mac.mm index 3a38f58..0ee2f7b 100644 --- a/chrome/browser/autocomplete/autocomplete_edit_view_mac.mm +++ b/chrome/browser/autocomplete/autocomplete_edit_view_mac.mm @@ -552,6 +552,7 @@ void AutocompleteEditViewMac::OnDidBeginEditing() { NSEvent* theEvent = [NSApp currentEvent]; const bool controlDown = ([theEvent modifierFlags]&NSControlKeyMask) != 0; model_->OnSetFocus(controlDown); + controller_->OnSetFocus(); // Capture the current state. OnBeforePossibleChange(); @@ -570,6 +571,7 @@ void AutocompleteEditViewMac::OnDidEndEditing() { // Tell the model to reset itself. model_->OnKillFocus(); + controller_->OnKillFocus(); } bool AutocompleteEditViewMac::OnDoCommandBySelector(SEL cmd) { |