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

Unified Diff: ui/events/ozone/layout/layout_util.cc

Issue 959923002: Fix CapsLock remapping. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unit test Created 5 years, 10 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/events/ozone/evdev/keyboard_evdev.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/layout/layout_util.cc
diff --git a/ui/events/ozone/layout/layout_util.cc b/ui/events/ozone/layout/layout_util.cc
index ea7dbd6e49a8321516260cc4f15b85b4abe3c7be..b36bf571170fb28f4abf6fd169098cc93bf7b627 100644
--- a/ui/events/ozone/layout/layout_util.cc
+++ b/ui/events/ozone/layout/layout_util.cc
@@ -546,6 +546,10 @@ int ModifierDomKeyToEventFlag(DomKey key) {
return EF_ALT_DOWN;
case DomKey::ALT_GRAPH:
return EF_ALTGR_DOWN;
+ // ChromeOS uses F16 to represent CapsLock before the rewriting stage,
+ // based on the historical X11 implementation.
+ // TODO post-X11: Switch to use CapsLock uniformly.
+ case DomKey::F16:
case DomKey::CAPS_LOCK:
return EF_CAPS_LOCK_DOWN;
case DomKey::CONTROL:
« no previous file with comments | « ui/events/ozone/evdev/keyboard_evdev.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698