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

Unified Diff: LayoutTests/fast/events/simulated-key-state.html

Issue 896383002: Revert 184783 "The link should be activated by enter key on focus.." (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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: LayoutTests/fast/events/simulated-key-state.html
diff --git a/LayoutTests/fast/events/simulated-key-state.html b/LayoutTests/fast/events/simulated-key-state.html
index 74a54966f20af1274ff72c1065aa62804fc29232..d594be0675b5ec58bcbb6f5527999d43f3de0961 100644
--- a/LayoutTests/fast/events/simulated-key-state.html
+++ b/LayoutTests/fast/events/simulated-key-state.html
@@ -23,7 +23,7 @@ function test(ctrlKey, altKey, shiftKey, metaKey)
expectedShift = shiftKey;
expectedMeta = metaKey;
var event = document.createEvent("KeyboardEvents");
- event.initKeyboardEvent("keypress", true, true, document.defaultView, "Enter", 0, ctrlKey, altKey, shiftKey, metaKey, false);
+ event.initKeyboardEvent("keydown", true, true, document.defaultView, "Enter", 0, ctrlKey, altKey, shiftKey, metaKey, false);
link.dispatchEvent(event);
}

Powered by Google App Engine
This is Rietveld 408576698