Commit 7262f7df authored by rbpotter's avatar rbpotter Committed by Commit Bot

Print Preview: Focus search box after sign in click

This prevents focus from disappearing (since signing in opens, and
later closes, a new tab).

Bug: 924921
Change-Id: I5fbab1a8bec1b0623fca33dc889f401099499ae4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1654354Reviewed-by: default avatarHector Carmona <hcarmona@chromium.org>
Commit-Queue: Rebekah Potter <rbpotter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#668570}
parent d55ed3f4
...@@ -309,6 +309,7 @@ Polymer({ ...@@ -309,6 +309,7 @@ Polymer({
this.metrics_.record( this.metrics_.record(
print_preview.Metrics.DestinationSearchBucket.SIGNIN_TRIGGERED); print_preview.Metrics.DestinationSearchBucket.SIGNIN_TRIGGERED);
print_preview.NativeLayer.getInstance().signIn(false); print_preview.NativeLayer.getInstance().signIn(false);
this.$.searchBox.focus();
}, },
/** @private */ /** @private */
......
...@@ -38,6 +38,10 @@ Polymer({ ...@@ -38,6 +38,10 @@ Polymer({
return this.$.searchInput; return this.$.searchInput;
}, },
focus: function() {
this.$.searchInput.focus();
},
/** /**
* @param {!CustomEvent<string>} e Event containing the new search. * @param {!CustomEvent<string>} e Event containing the new search.
* @private * @private
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment