hiro-sun / vscode-emacs

91 stars 104 forks source link

'C-g' should cancel long keybinding in progress (if any). #31

Open okia opened 7 years ago

okia commented 7 years ago

Quick fix for issue #30. Known issues:

  1. Generally, 'Ctrl+g' should be pressed twice. This is connected with curios current behavior [of vscode-emacs extension]: whenever there is an active selection, pressing 'Ctrl+g' for the first time clears up the selection, but extension does not receive neither 'C-g', nor 'Type' command. Pressing 'Ctrl+g' for the second time results in [extension] receiving 'C-g' command.
  2. Unlike Emacs, extension does not preserve current selection on pressing 'Ctrl+g'. TODO: Investigate the situation with 'C-g' behavior in more details.