diff options
Diffstat (limited to 'views/controls/menu/menu_host.cc')
-rw-r--r-- | views/controls/menu/menu_host.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/views/controls/menu/menu_host.cc b/views/controls/menu/menu_host.cc index cd6a8ae..512148b 100644 --- a/views/controls/menu/menu_host.cc +++ b/views/controls/menu/menu_host.cc @@ -48,13 +48,8 @@ void MenuHost::ShowMenuHost(bool do_capture) { // process of showing. ignore_capture_lost_ = true; Show(); - if (do_capture) { + if (do_capture) native_widget_private()->SetMouseCapture(); - // We do this to effectively disable window manager keyboard accelerators - // for chromeos. Such accelerators could cause cause another window to - // become active and confuse things. - native_widget_private()->SetKeyboardCapture(); - } ignore_capture_lost_ = false; } @@ -79,8 +74,6 @@ void MenuHost::SetMenuHostBounds(const gfx::Rect& bounds) { void MenuHost::ReleaseMenuHostCapture() { if (native_widget_private()->HasMouseCapture()) native_widget_private()->ReleaseMouseCapture(); - if (native_widget_private()->HasKeyboardCapture()) - native_widget_private()->ReleaseKeyboardCapture(); } //////////////////////////////////////////////////////////////////////////////// |