[CrOS Network] Fix button focus issue in <internet-detail-dialog>.
Previously, when users who navigated the dialog via the keyboard (i.e., using the Tab key) pressed Enter on the connect and/or disconnect button, focus would be lost. This was due to the fact that the UI actually had 2 buttons (connect and disconnect), and one is hidden when the other is visible. Thus, when users would click one button, it would immediately become hidden and its focus would be lost. This CL fixes this issue by having both connect and disconnect share a single button which remains visible and retains focus after the Enter key is pressed. Bug: 971213 Change-Id: Ifd5c29946ab86ce95548fe6d95e5c3c6738f4976 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1655977 Commit-Queue: Kyle Horimoto <khorimoto@chromium.org> Auto-Submit: Kyle Horimoto <khorimoto@chromium.org> Reviewed-by:Steven Bennetts <stevenjb@chromium.org> Cr-Commit-Position: refs/heads/master@{#668537}
Showing
Please register or sign in to comment