Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(356)

Unified Diff: ui/views/controls/menu/menu_key_event_handler.cc

Issue 1625313002: Remove MenuMessagePumpDispatcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replaced typedef with using Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/controls/menu/menu_controller.cc ('k') | ui/views/controls/menu/menu_message_loop_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/menu_key_event_handler.cc
diff --git a/ui/views/controls/menu/menu_key_event_handler.cc b/ui/views/controls/menu/menu_key_event_handler.cc
index fc110b5ab1b1ec7ebdcb04d2849bea4b206a4cf9..b4b3279d7051bb19cc047312955c651576cf568e 100644
--- a/ui/views/controls/menu/menu_key_event_handler.cc
+++ b/ui/views/controls/menu/menu_key_event_handler.cc
@@ -5,7 +5,6 @@
#include "ui/views/controls/menu/menu_key_event_handler.h"
#include "ui/aura/env.h"
-#include "ui/events/keycodes/keyboard_code_conversion.h"
#include "ui/views/controls/menu/menu_controller.h"
#include "ui/views/views_delegate.h"
@@ -53,7 +52,7 @@ void MenuKeyEventHandler::OnKeyEvent(ui::KeyEvent* event) {
const int flags = event->flags();
if (menu_controller->exit_type() == MenuController::EXIT_NONE &&
(flags & kKeyFlagsMask) == 0) {
- char c = ui::DomCodeToUsLayoutCharacter(event->code(), flags);
+ char c = event->GetCharacter();
menu_controller->SelectByChar(c);
}
}
« no previous file with comments | « ui/views/controls/menu/menu_controller.cc ('k') | ui/views/controls/menu/menu_message_loop_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698