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

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: 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..218217a113dc3ef70bd158fcd592d9f3029f030e 100644
--- a/third_party/WebKit/Source/platform/PlatformKeyboardEvent.cpp
+++ b/third_party/WebKit/Source/platform/PlatformKeyboardEvent.cpp
@@ -71,6 +71,16 @@ void PlatformKeyboardEvent::disambiguateKeyDownEvent(EventType type)
#endif
}
+PlatformEvent::Modifiers PlatformKeyboardEvent::accessKeyModifiers()
+{
+ // TODO(crbug.com/618397): Add a settings to control this behavior.
+#if OS(MACOSX)
+ return static_cast<PlatformEvent::Modifiers>(PlatformEvent::CtrlKey | PlatformEvent::AltKey);
+#else
+ return PlatformEvent::AltKey;
+#endif
+}
+
bool PlatformKeyboardEvent::currentCapsLockState()
{
switch (s_overrideCapsLockState) {
« no previous file with comments | « third_party/WebKit/Source/platform/PlatformKeyboardEvent.h ('k') | third_party/WebKit/Source/web/WebAXObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698