cr-searchable-drop-down does not support arrow keys |
||||||
Issue descriptionthe cr-searchable-drop-down component does not support navigating through the dropdown with arrow keys
,
Oct 12
,
Oct 22
,
Dec 19
,
Dec 19
Hmm, I think that the correct behavior is to support arrow keys, but I think the current behavior may be due to the fact that the dropdown implements a search. +xdai@ who implemented Add Printer dialogs - Is there a reason why we can't navigate these dropdowns with arrow keys?
,
Dec 20
I agree it should support arrow keys, and I don't see any reason to stop us from supporting that. It looks like cr-searchable-drop-down should be a listener of keydown event.
,
Dec 20
Great, thanks! Let's move forward with adding support for arrow keys then.
,
Dec 21
FWIW, one of the arguments for using a native <select> instead of custom dropdowns is that keyboard behavior works out of the box (including arrow navigation, and searching). Just mentioning this, to keep in mind as an alternative, instead of re-implementing all that for cr-searchable-dropdown from scratch. The downside is that the <select>'s expanded (popup) UI can't be styled for the most part. This is one of many reasons (for example placement of the popup depending on space availability) why we decided to use <select> for most cases, see [1]. [1] https://cs.chromium.org/chromium/src/ui/webui/resources/html/md_select_css.html |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by baileyberro@chromium.org
, Oct 10