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

Unified Diff: ui/events/base_event_utils.h

Issue 1325333002: Ignore inserting character with Search as a modifier on ChromeOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: oshima's comments Created 5 years, 3 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/base_event_utils.h
diff --git a/ui/events/base_event_utils.h b/ui/events/base_event_utils.h
index beef1f590ad758de0910c2861cdd01ef831a1a5d..9525a0f6a7dd9e7d9255f151c58a5a5e223b4692 100644
--- a/ui/events/base_event_utils.h
+++ b/ui/events/base_event_utils.h
@@ -14,6 +14,11 @@ namespace ui {
// Generate an unique identifier for events.
EVENTS_BASE_EXPORT uint32 GetNextTouchEventId();
+// Checks if |flags| contains system key modifiers. If |allow_altgr| is false
+// and AltGr is pressed, then |flags| is considered not to have any system
+// modifiers.
+EVENTS_BASE_EXPORT bool IsSystemKeyModifier(int flags, bool allow_altgr);
kpschoedel 2015/09/04 18:06:13 I think the ‘allow_altgr’ parameter makes this har
afakhry 2015/09/04 18:26:35 I agree. Done.
+
} // namespace ui
#endif // UI_EVENTS_BASE_EVENT_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698