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

Unified Diff: content/shell/renderer/test_runner/event_sender.cc

Issue 658183002: Add support for DOM3 KeyboardEvent keycode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Embedder API to allow access to DOM3 code value based on native key value Created 6 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
Index: content/shell/renderer/test_runner/event_sender.cc
diff --git a/content/shell/renderer/test_runner/event_sender.cc b/content/shell/renderer/test_runner/event_sender.cc
index dc8e47383a1e86f0f8d74981de708f909335f226..f78f134b753457cce86bfc58b309b2bc5f5e50ba 100644
--- a/content/shell/renderer/test_runner/event_sender.cc
+++ b/content/shell/renderer/test_runner/event_sender.cc
@@ -1270,6 +1270,10 @@ void EventSender::KeyDown(const std::string& code_str,
code = ui::VKEY_BACK;
} else if ("escape" == code_str) {
code = ui::VKEY_ESCAPE;
+ } else if ("scrollLock" == code_str) {
apavlov 2014/11/12 08:56:32 is this a drive-by change?
Habib Virji 2014/11/24 15:13:09 Actually these changes are not needed any more, it
+ code = ui::VKEY_SCROLL;
+ } else if ("pause" == code_str) {
+ code = ui::VKEY_PAUSE;
} else {
// Compare the input string with the function-key names defined by the
// DOM spec (i.e. "F1",...,"F24"). If the input string is a function-key
« content/renderer/render_view_impl.cc ('K') | « content/renderer/render_view_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698