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

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

Issue 619613005: The link should be activated by enter key on focusing the child element inside the anchor(relanding) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 1 month 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 d594be0675b5ec58bcbb6f5527999d43f3de0961..74a54966f20af1274ff72c1065aa62804fc29232 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("keydown", true, true, document.defaultView, "Enter", 0, ctrlKey, altKey, shiftKey, metaKey, false);
+ event.initKeyboardEvent("keypress", true, true, document.defaultView, "Enter", 0, ctrlKey, altKey, shiftKey, metaKey, false);
link.dispatchEvent(event);
}

Powered by Google App Engine
This is Rietveld 408576698