Skip to content

Combobox: Escape key should not clear current input #1066

@eldargab

Description

@eldargab

Currently ARIA 1.1 Combobox example says about ESC key that it:

  • Clears the textbox
  • If the listbox is displayed, closes it.

To my feeling textbox clearing contradicts almost everything users are used to and expect.

  1. Escape key usually means "Abort what you are currently doing". From that point of view clearing is definitely an unwanted side effect.

  2. Native browser select does not clear selection on escape key.

  3. Every UI library I am aware of, which implements combobox pattern, does not clear textbox as well. Ant design, react-select, select2 to name a few and those are very popular.

to-do list added by Matt

This will be fixed in APG 1.2 with the following:

  • Fixed in pattern with commit 315a4dd
  • Fixed in combobox-autocomplete-both.html with commit 85085b2
  • Fixed in combobox-autocomplete-list.html with commit 85085b2
  • Fixed in combobox-autocomplete-none.html with commit 85085b2
  • Fix in grid-combo.html

Metadata

Metadata

Assignees

Labels

FeedbackIssue raised by or for collecting input from people outside APG task forcePattern PageRelated to a page documenting a PatternquestionIssue asking a question

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions