[chrome://omnibox omnibox] 'space'/'enter' to activate focused buttons.
The copy, paste, download, upload, and batch buttons can be focused with the tab key or mouse clicks. However, pressing 'space' or 'enter' does not activate the focused button. The download, upload, and batch buttons are labels wrapping invisible file inputs. This is required in order to style file inputs. The copy and paste buttons are spans for consistency with the other 3 buttons. Since neither spans nor labels are typically intractable, they don't inherently process 'space' and 'enter' key presses when focused as standard buttons do. This CL explicitly adds a keypress listener to do so. Bug: 1040024 Change-Id: I182a238b8daf3bd25d874b090752173ae1738c41 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1992309 Commit-Queue: manuk hovanesian <manukh@chromium.org> Reviewed-by:Tommy Li <tommycli@chromium.org> Cr-Commit-Position: refs/heads/master@{#729853}
Showing
This diff is collapsed.
Please register or sign in to comment