From f06a9ff477f69bc988f48d4da8658c20ec0f8e17 Mon Sep 17 00:00:00 2001 From: "rohitrao@chromium.org" Date: Wed, 27 Jan 2010 19:45:15 +0000 Subject: [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 --- chrome/browser/autocomplete/autocomplete_edit_view_mac.mm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'chrome/browser/autocomplete/autocomplete_edit_view_mac.mm') 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) { -- cgit v1.1