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

Unified Diff: LayoutTests/fast/forms/resources/picker-common.js

Issue 1311013012: date/time inputs should not handle keyboard events if they aren't focused. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update *-open-picker-with-f4-key.html Created 5 years, 3 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/forms/resources/picker-common.js
diff --git a/LayoutTests/fast/forms/resources/picker-common.js b/LayoutTests/fast/forms/resources/picker-common.js
index c1e978fa07c8fe4f5d269b20df8219ba6b61e75c..65dfb1692c94f6a7a706e7cbbe1adf81a5e6f92a 100644
--- a/LayoutTests/fast/forms/resources/picker-common.js
+++ b/LayoutTests/fast/forms/resources/picker-common.js
@@ -40,6 +40,7 @@ function rootWindow() {
function openPicker(element, callback, errorCallback) {
rootWindow().moveTo(window.screenX, window.screenY);
element.offsetTop; // Force to lay out
+ element.focus();
if (element.tagName === "SELECT") {
sendKey(element, "Down", false, true);
} else if (element.tagName === "INPUT") {

Powered by Google App Engine
This is Rietveld 408576698