Skip to content
Commit e75c49cc authored by Leonard Grey's avatar Leonard Grey Committed by Chromium LUCI CQ
Browse files

Commander: refocus input when invoked

If a user selects a Commander option with the mouse, the text input loses focus. Since we don't reload the page when Commander is next invoked, the `autofocus` attribute on the input does nothing and the input starts unfocused.

This change adds an explicit focus when initializing the UI.

Bug: 1014639
Change-Id: Ic2dc86554d8956512a30bc08bc1268d68598d9c4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3115485


Reviewed-by: default avatarPeter Boström <pbos@chromium.org>
Commit-Queue: Leonard Grey <lgrey@chromium.org>
Cr-Commit-Position: refs/heads/main@{#914752}
parent bf6ee270
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment