-
-
Notifications
You must be signed in to change notification settings - Fork 101
Open
Description
I'm making a video editor so I kinda want to disable spacebar for Select because it's mostly used for Pause/Play. It ends up being more of a pain than keyboard-accessible, because pressing spacebar selects a new option when the user expects that it'll play/pause. I think Enter does the job right? Or am I wrong here?
Or atleast blur when I do this? Because it doesn't unfocus the Select when I press escape.
<Select
onKeyDown={(e) => {
console.log("BLUR", e.code)
if (e.code === "Escape") {
document.body.focus()
e.currentTarget.blur()
}
}} >Metadata
Metadata
Assignees
Labels
No labels