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

Escape sequence for alternative input-method #51

Open
lislon opened this issue Sep 28, 2015 · 2 comments
Open

Escape sequence for alternative input-method #51

lislon opened this issue Sep 28, 2015 · 2 comments

Comments

@lislon
Copy link

lislon commented Sep 28, 2015

I am using org-mode and would like to exit from insert mode by fd while my input-method is alternative. I'v tested russian escape sequence, but it doesn't work.

How to reproduce:

  1. Set (setq-default evil-escape-key-sequence "ав")
  2. Change input-method (set-input-method) to cyrilic-jis-russian
  3. Switch to insert mode, change input method by C-\ and try to exit by pressing keys fd (it will be ав in russian)

Probably there should be a way to define unique escape sequence for each language to make in infrequent.

@ed-ilyin
Copy link

ed-ilyin commented Oct 2, 2015

+1
I have exactly the same problem.
Can't find even workaround.

@lislon
Copy link
Author

lislon commented Oct 2, 2015

I myself gived up on this idea, because I can't find conveniently key combination for russian layout.
For now I using M-\:

  ;; M-\ to escape
  (define-key evil-hybrid-state-map (kbd "M-\\") 'evil-escape)

danielkoning added a commit to danielkoning/evil-escape that referenced this issue Jun 13, 2020
As suggested in section 21.7.15 of the elisp manual, handle keyboard
events internally as vectors across the board, rather than preferring
strings when possible. This commit, in combination with the one before
it, fixes syl20bnr#51: `this-command-keys' returns a vector
for most key sequences, so (for instance) the expression

  (equal (this-command-keys) "π")

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

No branches or pull requests

3 participants