[Bug] Random input in normal mode with IME

Open
#178 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
frontend

Research direction

Start by reproducing the IME behavior in the forked project at https://replit.com/@util/codemirror-vim and compare it with the CodeMirror 5 Vim demo. Review issue #83 for prior investigation. Done means Microsoft Input Method and Rime behave predictably in normal mode without unintended cursor movement, insertion, deletion, or modification.

Written by the indexing model from the issue text.

Description

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.

Dominant language
JavaScript
Stars
470
Forks
53
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from replit/codemirror-vim

All issues in replit/codemirror-vim

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.