-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(select): close panel on alt + arrow key presses #9250
Conversation
crisbeto
commented
Jan 5, 2018
- Closes the select panel when pressing alt + down/up arrow, based on the native select.
- Does some minor cleanup around the select tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, one small comment, add merge-ready when ready
src/lib/select/select.ts
Outdated
} else if ((keyCode === ENTER || keyCode === SPACE) && this._keyManager.activeItem) { | ||
keyCode === HOME ? manager.setFirstItemActive() : manager.setLastItemActive(); | ||
} else if (isArrowKey && event.altKey) { | ||
event.preventDefault(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment was:
Add a comment here like
// Close the select on ALT + arrow key to match the native <select>
* Closes the select panel when pressing alt + down/up arrow, based on the native select. * Does some minor cleanup around the select tests.
a06d169
to
144f294
Compare
* Closes the select panel when pressing alt + down/up arrow, based on the native select. * Does some minor cleanup around the select tests.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |