Skip to content

Dropdown: Add ability to open via space bar - #1466

Merged
Micah Godbolt (micahgodbolt) merged 4 commits into
microsoft:masterfrom
c-w:feature/open-dropdown-with-space
Apr 11, 2017
Merged

Dropdown: Add ability to open via space bar#1466
Micah Godbolt (micahgodbolt) merged 4 commits into
microsoft:masterfrom
c-w:feature/open-dropdown-with-space

Conversation

@c-w

Copy link
Copy Markdown
Contributor

Pull request checklist

Description of changes

Users who make use of our accessibility features will expect dropdowns to be controllable via space-bar in addition to the enter key. We currently only support the latter. This pull request adds support for the former.

Focus areas to test

Manually verified on Dropdown.Basic.Example:

  1. Navigate via keyboard to dropdown. Press space. Dropdown opens.
  2. Press space. Dropdown closes.

Note that unlike for other keys, we handle the open/close in onKeyUp to
prevent double triggering of the event.

Resolves #1445
@micahgodbolt

Copy link
Copy Markdown
Member

Works great for me.

@micahgodbolt
Micah Godbolt (micahgodbolt) merged commit faeb86c into microsoft:master Apr 11, 2017
@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Aug 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants