replit / codemirror-vim

Vim keybindings for CM6
https://www.npmjs.com/package/@replit/codemirror-vim
MIT License
289 stars 30 forks source link

[Bug] Random input in normal mode with IME #178

Open LawrenceGK opened 4 months ago

LawrenceGK commented 4 months ago

I noticed that issue #83 attempted to resolve this problem, but I am still encountering it. I am using Microsoft Input Method or Rime Input Method (Chinese).

Expected Result: The input method should be disabled in normal mode (or behave the same as in English input mode), and pressing keys such as a, o, j, k should not move the cursor or input characters (or should move the cursor correctly).

Actual Result: In normal mode, the behavior is random (varies depending on the input method used), such as h and l moving two characters, both j and k moving down, and a character behind the cursor being deleted or modified.

I tested this on https://codemirror.net/5/demo/vim.html, and it behaves as expected. However, when I forked and ran the project at https://replit.com/@util/codemirror-vim, the issue still exists. The test page mentioned in issue #83, https://raw.githack.com/replit/codemirror-vim/github-demo/dev/web-demo.html, is now inaccessible.

LawrenceGK commented 4 months ago

Btw, behaves as expected on cm5 demo on https://replit.com/@replitfaris/codemirror-vim.