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

Unified Diff: ui/content_accelerators/accelerator_util.cc

Issue 2013293002: NOT FOR COMMIT: Make altgr+left and altgr+right navigate back/forward on views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
Index: ui/content_accelerators/accelerator_util.cc
diff --git a/ui/content_accelerators/accelerator_util.cc b/ui/content_accelerators/accelerator_util.cc
index a2faa97fe70a44ffeafed368f6c7b9dbc1a131ff..8c04123e037e3f925c165772f76abe2823381a4c 100644
--- a/ui/content_accelerators/accelerator_util.cc
+++ b/ui/content_accelerators/accelerator_util.cc
@@ -22,6 +22,8 @@ int GetModifiersFromNativeWebKeyboardEvent(
modifiers |= ui::EF_CONTROL_DOWN;
if (event.modifiers & content::NativeWebKeyboardEvent::AltKey)
modifiers |= ui::EF_ALT_DOWN;
+ if (event.modifiers & content::NativeWebKeyboardEvent::AltGrKey)
+ modifiers |= ui::EF_ALTGR_DOWN;
#if defined(OS_MACOSX) || defined(OS_CHROMEOS)
if (event.modifiers & content::NativeWebKeyboardEvent::MetaKey)
modifiers |= ui::EF_COMMAND_DOWN;

Powered by Google App Engine
This is Rietveld 408576698