Skip to content

Commit

Permalink
Combobox Pattern: Revise Escape behavior (pull #1129)
Browse files Browse the repository at this point in the history
For issue #1066, revises description of escape behavior.
Escape may optionally clear the text box,
but only if the popup is hidden before escape is pressed.
Previously, the pattern implied both could happen with a single press of escape, which is inconsistent with any known implementations.
  • Loading branch information
mcking65 authored Aug 31, 2019
1 parent 13e6d32 commit 698da57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aria-practices.html
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ <h5>Textbox Keyboard Interaction</h5>
</ul>
</li>
<li><kbd>Up Arrow</kbd> (Optional): If the popup is available, places focus on the last focusable element in the popup.</li>
<li><kbd>Escape</kbd>: Dismisses the popup if it is visible. Optionally, clears the textbox.</li>
<li><kbd>Escape</kbd>: Dismisses the popup if it is visible. Optionally, if the popup is hidden before <kbd>Escape</kbd> is pressed, clears the textbox.</li>
<li>
<kbd>Enter</kbd>: If an autocomplete suggestion is automatically selected, accepts the suggestion either by placing the input cursor at the end of the accepted value in the textbox or by performing a default action on the value.
For example, in a messaging application, the default action may be to add the accepted value to a list of message recipients and then clear the textbox so the user can add another recipient.
Expand Down

0 comments on commit 698da57

Please sign in to comment.