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

Unified Diff: Source/testing/runner/EventSender.cpp

Issue 23444080: Implement KeyboardEvent.repeat attribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 2 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
« no previous file with comments | « Source/core/events/KeyboardEvent.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/testing/runner/EventSender.cpp
diff --git a/Source/testing/runner/EventSender.cpp b/Source/testing/runner/EventSender.cpp
index 19039272ea17138fe00e8c6f514f5fee93aee17f..985fc1e01e35bd876a85d6286ae65637224902e3 100644
--- a/Source/testing/runner/EventSender.cpp
+++ b/Source/testing/runner/EventSender.cpp
@@ -184,6 +184,8 @@ bool applyKeyModifier(const string& modifierName, WebInputEvent* event)
} else if (!strcmp(characters, "metaKey")) {
event->modifiers |= WebInputEvent::MetaKey;
#endif
+ } else if (!strcmp(characters, "autoRepeat")) {
+ event->modifiers |= WebInputEvent::IsAutoRepeat;
}
return isSystemKey;
}
« no previous file with comments | « Source/core/events/KeyboardEvent.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698