replit/codemirror-vim

[Bug] Random input in normal mode with IME

LawrenceGK opened this issue · 2 comments

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.

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

I encounter the same problem. I am using Chinese input method on Windows.