-
Notifications
You must be signed in to change notification settings - Fork 25
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
Keyboard navigation #109
Keyboard navigation #109
Conversation
Interaction flow:
|
On the other hand, we sacrifice part of the functionality of The way React handles states is a mess... |
If you are curious about why you need an unintuitive |
With this PR #47 can be closed. |
New interaction flow with the requested changes:
|
Cursor position TODO in #113 |
return () => { | ||
document.removeEventListener('keydown', handleKeydown); | ||
}; | ||
}, []); |
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.
handleKeyDown will depend on "disabled",
- wrap handleKeyDown using useCallback and put
disabled
in the dependency list - put handleKeyDown in the dependency list of useEffect
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.
42853c2 this?
@pelikhan Can I merge this in? It also fixes a rather critical bug (non-playground editors no longer editable) |
Always good to add a description to a PR once it is ready for review. (Future you will thank present you) |
🎉 This PR is included in version 1.0.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
No description provided.