We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When pressing Ctrl+K it follows the standard behavior of the browser, neither fn nor target are triggered.
const $isModalOpen = createStore(false) const ctrlKPressed = hotkey({ key: 'Ctrl+KeyC' }) const openSearch = createEvent() const preventDefaultFx = createEffect((evt: KeyboardEvent) => evt.preventDefault()) sample({ clock: [ctrlKPressed, openSearch], fn: (evt) => { if (evt instanceof KeyboardEvent) evt.preventDefault() return true }, target: [$isModalOpen, preventDefaultFx], })
so none of the preventDefault methods break the standard behavior
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When pressing Ctrl+K it follows the standard behavior of the browser, neither fn nor target are triggered.
so none of the preventDefault methods break the standard behavior
The text was updated successfully, but these errors were encountered: