How to add a keybinding with this eidtor #1805
-
For example, i want to add a shortcut when i press |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
You can listen to the |
Beta Was this translation helpful? Give feedback.
-
@IWANABETHATGUY did you make it happen? i need to implement the same too...🙂 |
Beta Was this translation helpful? Give feedback.
You can listen to the
KEY_ENTER_COMMAND
, which gets passed theevent
as the payload.editor.addComment(KEY_ENTER_COMMAND, (event) => {…}, Priority)