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

Unified Diff: third_party/WebKit/Source/core/input/KeyboardEventManager.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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/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());
« no previous file with comments | « third_party/WebKit/Source/core/input/GestureManager.cpp ('k') | third_party/WebKit/Source/core/input/MouseEventManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698