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

Unified Diff: third_party/WebKit/public/web/WebInputEvent.h

Issue 1391843006: Embed keyboard shortcut bit in WebKeyboardEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test Created 5 years, 2 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: third_party/WebKit/public/web/WebInputEvent.h
diff --git a/third_party/WebKit/public/web/WebInputEvent.h b/third_party/WebKit/public/web/WebInputEvent.h
index 4751e08863381544dd07f54ae56448178a42f948..53ca6a160bca6f32f40af13023ef2e97fc2cefa4 100644
--- a/third_party/WebKit/public/web/WebInputEvent.h
+++ b/third_party/WebKit/public/web/WebInputEvent.h
@@ -283,6 +283,11 @@ public:
// easier to leave it always false than ifdef.
bool isSystemKey;
+ // Whether the event forms part of a browser-handled keyboard shortcut.
+ // This can be used to conditionally suppress Char events after a
+ // shortcut-triggering RawKeyDown goes unhandled.
+ bool isBrowserShortcut;
+
// |text| is the text generated by this keystroke. |unmodifiedText| is
// |text|, but unmodified by an concurrently-held modifiers (except
// shift). This is useful for working out shortcut keys. Linux and
@@ -300,6 +305,7 @@ public:
, windowsKeyCode(0)
, nativeKeyCode(0)
, isSystemKey(false)
+ , isBrowserShortcut(false)
{
memset(&text, 0, sizeof(text));
memset(&unmodifiedText, 0, sizeof(unmodifiedText));
« content/renderer/render_widget.cc ('K') | « content/renderer/render_widget_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698