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

Dead key input treated as insertion in normal mode #159

Open
Opisek opened this issue Jan 11, 2024 · 1 comment
Open

Dead key input treated as insertion in normal mode #159

Opisek opened this issue Jan 11, 2024 · 1 comment

Comments

@Opisek
Copy link
Contributor

Opisek commented Jan 11, 2024

In case of using a keyboard layout with dead keys, e.g. the russian mnemonic keyboard, input in normal mode might be treated like input in insert mode.

On the mnemonic Russian keyboard, pressing the dead key j twice (which corresponds to "йй") results in "йй" being inserted. It would be expected for the cursor to move down twice instead.

One of the two things could be done:

  • Research if it's possible to handle dead keys as normal keypresses (dubitable)
  • Remove the limitation of input length for normal mode as described here (Supposedly that can interfere with Japanese IME and spellcheck, I'm not yet sure how to reproduce a possible bug.)
@Opisek
Copy link
Contributor Author

Opisek commented Jan 28, 2024

Looks like it might be possible to detect those dead keys after all:
https://stackoverflow.com/a/51413620/9597790

Trying the mnemonic russian layout in the provided example does indeed print a character code for each distinct keypress.

It might make sense to break those keypresses up into singular keys in normal mode. I'm unsure how viable this is in the scope of codemirror-vim though. Perhaps I'd need to go upstream with this request.

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

1 participant