-
Notifications
You must be signed in to change notification settings - Fork 3
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
space key / dispatch 'Space' #9
Comments
From Svelte documentation (https://svelte.dev/docs#run-time-svelte-createeventdispatcher)
However, if you pass a function which calls the original keyboard events preventDefault , you can use it from Keydown.svelte
App.svelte
something like that |
@notYou263 Nice – I think that's a separate feature request though. |
@notYou263 The |
The keyboard event for space key is
KeyboardEvent: key=' ' | code='Space'
This leads to call of dispatch with key value ' ' for space key.
Mapping it to 'Space' would be great so one can use on:Space on a component as like for Enter and Escape
The text was updated successfully, but these errors were encountered: