Skip to content
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

newbie question: how to add custom keymap for <Esc> #44

Closed
prmichaelsen opened this issue Aug 7, 2022 · 3 comments
Closed

newbie question: how to add custom keymap for <Esc> #44

prmichaelsen opened this issue Aug 7, 2022 · 3 comments

Comments

@prmichaelsen
Copy link

I tried my best reading the source code, existing issues, and the docs for codemirror and I'm still at a loss. I'm going to continue trying to solve this myself, but in the meantime, I figured I'd ask for help. Thanks!

@sergeichestakov
Copy link
Member

Hey @prmichaelsen! You can use a keymap facet with a key of "escape" (see example in the docs and in our VS Code keymap extension).

Note that you may have to give your keymap a higher precedence if used in conjunction with our CM Vim extension since we also register a keybinding for Esc

@prmichaelsen
Copy link
Author

prmichaelsen commented Aug 8, 2022 via email

@nightwing
Copy link
Collaborator

https://github.com/replit/codemirror-vim/pull/45/files adds an example of mapping to readme as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants