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 bd8dcda1a7934e6a78a36a6191951eb56b9289e4..5c062765ceffddb5de6f41aa3a0f32b30fb9d061 100644 |
--- a/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp |
+++ b/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp |
@@ -140,8 +140,9 @@ bool KeyboardEventManager::handleAccessKey(const WebKeyboardEvent& evt) { |
// correct element is matched based on Shift key state. Firefox only matches |
// an access key if Shift is not pressed, and does that case-insensitively. |
DCHECK(!(kAccessKeyModifiers & WebInputEvent::ShiftKey)); |
- if ((evt.modifiers() & (WebKeyboardEvent::KeyModifiers & |
- ~WebInputEvent::ShiftKey)) != kAccessKeyModifiers) |
+ if ((evt.modifiers() & |
+ (WebKeyboardEvent::KeyModifiers & ~WebInputEvent::ShiftKey)) != |
+ kAccessKeyModifiers) |
return false; |
String key = String(evt.unmodifiedText); |
Element* elem = m_frame->document()->getElementByAccessKey(key.lower()); |