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

Unified Diff: ui/events/ozone/evdev/event_modifiers_evdev.h

Issue 959923002: Fix CapsLock remapping. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: ui/events/ozone/evdev/event_modifiers_evdev.h
diff --git a/ui/events/ozone/evdev/event_modifiers_evdev.h b/ui/events/ozone/evdev/event_modifiers_evdev.h
index 56047117c9a32b68adc78bae464c3363fd14fee8..6bbab337b84cf26465b50e59247959d4610a221f 100644
--- a/ui/events/ozone/evdev/event_modifiers_evdev.h
+++ b/ui/events/ozone/evdev/event_modifiers_evdev.h
@@ -12,7 +12,8 @@ namespace ui {
enum {
EVDEV_MODIFIER_NONE,
- EVDEV_MODIFIER_CAPS_LOCK,
+ EVDEV_MODIFIER_CAPS_LOCK_HELD,
+ EVDEV_MODIFIER_CAPS_LOCKED_STATE,
EVDEV_MODIFIER_SHIFT,
EVDEV_MODIFIER_CONTROL,
EVDEV_MODIFIER_ALT,
@@ -56,6 +57,9 @@ class EVENTS_OZONE_EVDEV_EXPORT EventModifiersEvdev {
// Return current flags to use for incoming events.
int GetModifierFlags();
+ // Return current flags that are "locked".
+ int GetModifierLockFlags();
+
// Return the mask for the specified modifier.
static int GetEventFlagFromModifier(unsigned int modifier);

Powered by Google App Engine
This is Rietveld 408576698