Skip to content

Commit

Permalink
Editable Combobox Examples: Correct enter key documentation for the a…
Browse files Browse the repository at this point in the history
…utocomplete none and list implementations (pull #2138)

For combobox examples with autocomplete set to none or list, when focus is in the textbox, Enter key closes the listbox if it is open. This commit resolves #855 by updatings the documentation for the Enter key to be consistent with that behavior.
  • Loading branch information
mcking65 authored Nov 15, 2021
1 parent 59da387 commit 5f68a35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/combobox/combobox-autocomplete-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ <h3 id="kbd_label_textbox">Textbox</h3>
</tr>
<tr data-test-id="textbox-key-enter">
<th><kbd>Enter</kbd></th>
<td>Closes the listbox.</td>
<td>Closes the listbox if it is displayed.</td>
</tr>
<tr data-test-id="textbox-key-escape">
<th><kbd>Escape</kbd></th>
Expand Down
7 changes: 1 addition & 6 deletions examples/combobox/combobox-autocomplete-none.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,7 @@ <h3 id="kbd_label_textbox">Textbox</h3>
</tr>
<tr data-test-id="textbox-key-enter">
<th><kbd>Enter</kbd></th>
<td>
<ul>
<li>Sets the textbox value to the content of the selected option.</li>
<li>Closes the listbox if it is displayed.</li>
</ul>
</td>
<td>Closes the listbox if it is displayed.</td>
</tr>
<tr data-test-id="standard-single-line-editing-keys">
<th>Standard single line text editing keys</th>
Expand Down

0 comments on commit 5f68a35

Please sign in to comment.