Chromium Code Reviews| Index: third_party/WebKit/Source/core/input/KeyboardEventManager.cpp |
| diff --git a/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp b/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp |
| index 72f23efaa2e348455e95389a3c6d244515b9c8fb..85e437ab33a192faf569ea68fdb70e76a57e6bdc 100644 |
| --- a/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp |
| +++ b/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp |
| @@ -437,7 +437,14 @@ bool KeyboardEventManager::currentCapsLockState() { |
| #elif OS(MACOSX) |
| return GetCurrentKeyModifiers() & alphaLock; |
| #else |
| - NOTIMPLEMENTED(); |
| + // Note that the caps lock state provided by this method is only |
|
wkorman
2017/03/15 00:03:14
Two alternatives to this patch:
1. modify LayoutT
dtapuska
2017/03/15 00:11:04
this lgtm. This NOTIMPLEMENTED use to be a no-op b
|
| + // used to paint a caps lock icon for Mac password input fields. |
| + // We may as well just return false if we end up here. Calling |
| + // NOTIMPLEMENTED() just produces a verbose debug stack trace |
| + // whenever an event is forwarded to a |
| + // LayoutTextControlSingleLine on platforms lacking an |
| + // implementation, such as CrOS, which isn't helpful as we have |
| + // no current plans or need to use this. |
|
stevenjb
2017/03/15 01:25:33
This is helpful, but maybe a little bit verbose :)
wkorman
2017/03/15 08:18:53
Done.
|
| return false; |
| #endif |
| case OverrideCapsLockState::On: |