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

Unified Diff: third_party/WebKit/Source/core/editing/EditingBehavior.cpp

Issue 2573073003: Collapse the API surface on WebInputEvent via accessor functions. (Closed)
Patch Set: Fix nits Created 3 years, 11 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/editing/EditingBehavior.cpp
diff --git a/third_party/WebKit/Source/core/editing/EditingBehavior.cpp b/third_party/WebKit/Source/core/editing/EditingBehavior.cpp
index 310ddf1232c2ca1757da424b5ef0df555ce53a48..49088f02ad4cbd064e609650a27f02138bfc6258 100644
--- a/third_party/WebKit/Source/core/editing/EditingBehavior.cpp
+++ b/third_party/WebKit/Source/core/editing/EditingBehavior.cpp
@@ -227,9 +227,9 @@ const char* EditingBehavior::interpretKeyEvent(
}
unsigned modifiers =
- keyEvent->modifiers & (ShiftKey | AltKey | CtrlKey | MetaKey);
+ keyEvent->modifiers() & (ShiftKey | AltKey | CtrlKey | MetaKey);
- if (keyEvent->type == WebInputEvent::RawKeyDown) {
+ if (keyEvent->type() == WebInputEvent::RawKeyDown) {
int mapKey = modifiers << 16 | event.keyCode();
const char* name = mapKey ? keyDownCommandsMap->get(mapKey) : nullptr;
if (!name)
« no previous file with comments | « extensions/browser/guest_view/web_view/web_view_guest.cc ('k') | third_party/WebKit/Source/core/editing/EditorKeyBindings.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698