How can I find out which letter the user has just typed? #2267
Unanswered
lumenwrites
asked this question in
Questions & Help
Replies: 2 comments
-
I think I figured it out:
It doesn't ignore the hotkeys though, it just captures the last pressed key. If there's a better solution - please let me know! |
Beta Was this translation helpful? Give feedback.
0 replies
-
There is const editor = useEditor({
editorProps: {
handleTextInput(view, from, to, text) {
console.log(text)
return true
},
},
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to get access to the letter the user just typed into the editor (ignoring all the hotkeys and whatever else the user may have pressed on the page). Can you help me to figure out how to do this?
Beta Was this translation helpful? Give feedback.
All reactions