-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add tabIndex to allow tabbing on the editor element * tab on editable blocks to start editing * able to enter/escape from editing mode only when not actually making any changes to the code * navigation working in a hacky way * use named variables for focus and blur handlers * remove document-level keydown handler with useEffect * use constant vars for props * use the same closure instance for add/remove onkeydown handler on document * quick fix * dependencies for handleKeyDown
- Loading branch information
1 parent
4a147f1
commit 2fca323
Showing
1 changed file
with
63 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters