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: third_party/WebKit/Source/platform/PlatformKeyboardEvent.cpp

Issue 2036643003: Creat a KeyboardEventManager class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move accessKeyModifiers to PlatformKeyboardEvent Created 4 years, 6 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/Source/platform/PlatformKeyboardEvent.cpp
diff --git a/third_party/WebKit/Source/platform/PlatformKeyboardEvent.cpp b/third_party/WebKit/Source/platform/PlatformKeyboardEvent.cpp
index f5b0d9084250359e0a8279b93cde73df8fd5a205..5da7650823428d28351733310879dc92ce959716 100644
--- a/third_party/WebKit/Source/platform/PlatformKeyboardEvent.cpp
+++ b/third_party/WebKit/Source/platform/PlatformKeyboardEvent.cpp
@@ -71,6 +71,15 @@ void PlatformKeyboardEvent::disambiguateKeyDownEvent(EventType type)
#endif
}
+PlatformEvent::Modifiers PlatformKeyboardEvent::accessKeyModifiers()
+{
+#if OS(MACOSX)
Rick Byers 2016/06/08 17:58:16 normally we prefer to avoid #ifdefs in blink for p
Navid Zolghadr 2016/06/08 18:55:08 Done.
+ return static_cast<PlatformEvent::Modifiers>(PlatformEvent::CtrlKey | PlatformEvent::AltKey);
+#else
+ return PlatformEvent::AltKey;
+#endif
+}
+
bool PlatformKeyboardEvent::currentCapsLockState()
{
switch (s_overrideCapsLockState) {

Powered by Google App Engine
This is Rietveld 408576698