-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Allow esc key to hide multiselect options #2135
Comments
oh yeah seems it's trying to close on escape (from |
This is very straightforward as you said. You can just put a |
@danielbh the |
Clicking on a canvas element will not hide the multiselect options. If most of the page is a canvas element this makes things difficult.
It would be great if the
esc
key would hide the multiselect menu. I think it would be fairly simple (although I haven't been in the code much)Handle key down event to detect when escape key is clicked
https://github.com/palantir/blueprint/blob/develop/packages/select/src/components/select/multiSelect.tsx#L140
Set state
isOpen
tofalse
and blur the input fieldThanks
The text was updated successfully, but these errors were encountered: