I’m making a plugin which I wish to have to the following flow:
- The command is run and moves the caret to a certain location
- The user can enter some text at this caret location
- If the user (optionally) hits ESC or Enter key - I want to perform another action
I need help with number 3. How do I recieve the key event while staying in the same context, i.e. able to access data in my sublime_plugin.TextCommand class?
This is much alike what snippet does - you can hit ESC to exit ‘snippet mode’.
Thanks.