Chromium Code Reviews| 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) { |