Skip to content
Snippets Groups Projects
Commit cca186ed authored by suzhe@chromium.org's avatar suzhe@chromium.org
Browse files

[Linux views]Fix the return value of WidgetGtk::HandleKeyboardEvent().

BUG=none
TEST=none

Review URL: http://codereview.chromium.org/3063025

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55028 0039d316-1c4b-4281-b951-d872f2087c98
parent bf27ecfc
No related branches found
No related tags found
No related merge requests found
......@@ -879,8 +879,9 @@ bool WidgetGtk::HandleKeyboardEvent(GdkEventKey* event) {
if (event->type == GDK_KEY_PRESS) {
// VKEY_MENU is triggered by key release event.
// FocusManager::OnKeyEvent() returns false when the key has been consumed.
if (key_code != base::VKEY_MENU)
handled = focus_manager_->OnKeyEvent(key);
handled = !focus_manager_->OnKeyEvent(key);
else
should_handle_menu_key_release_ = true;
} else if (key_code == base::VKEY_MENU && should_handle_menu_key_release_ &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment