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

Unified Diff: components/mus/public/cpp/lib/event_matcher.cc

Issue 1559163002: Clean up event flags a bit: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comment 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 | « components/exo/wayland/server.cc ('k') | components/mus/public/interfaces/input_event_constants.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/lib/event_matcher.cc
diff --git a/components/mus/public/cpp/lib/event_matcher.cc b/components/mus/public/cpp/lib/event_matcher.cc
index e52e97cc4a5e505592eda0664c0d09f6795913a8..0c39714bef55ea6d9c76470d61392f4107a32c66 100644
--- a/components/mus/public/cpp/lib/event_matcher.cc
+++ b/components/mus/public/cpp/lib/event_matcher.cc
@@ -15,9 +15,9 @@ mojom::EventMatcherPtr CreateKeyMatcher(mojom::KeyboardCode code,
// Ignoring these makes most accelerator scenarios more straight forward. Code
// that needs to check them can override this setting.
matcher->ignore_flags_matcher->flags =
- static_cast<mojom::EventFlags>(mojom::EVENT_FLAGS_CAPS_LOCK_DOWN |
- mojom::EVENT_FLAGS_SCROLL_LOCK_DOWN |
- mojom::EVENT_FLAGS_NUM_LOCK_DOWN);
+ static_cast<mojom::EventFlags>(mojom::EVENT_FLAGS_NUM_LOCK_ON |
+ mojom::EVENT_FLAGS_CAPS_LOCK_ON |
+ mojom::EVENT_FLAGS_SCROLL_LOCK_ON);
matcher->key_matcher = mojom::KeyEventMatcher::New();
matcher->type_matcher->type = mus::mojom::EVENT_TYPE_KEY_PRESSED;
« no previous file with comments | « components/exo/wayland/server.cc ('k') | components/mus/public/interfaces/input_event_constants.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698