Doesn't work at all on Android tablet

Open
#200 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
javascript

Research direction

Start by reproducing the issue in the CodeMirror Vim keybindings demo on an Android tablet, using both the native touch keyboard and an external Bluetooth keyboard. Inspect the key detection and text insertion behavior; done means hjkl and Esc work in Vim normal mode without inserting characters or leaving the user stuck in insert mode.

Written by the indexing model from the issue text.

Description

I use CodeMirror mostly through Obsidian. It works amazingly well on all my devices, including iOS devices.
But when using it on an Android phone or tablet, the basics of Vim keybindings aren't working.

For example, when using hjkl to move in normal mode, characters appear in the text while moving.
Escaping sometimes doesn't work and I get stuck in insert mode.

It seems that the detection of keys is just flaky and messes with the default text insertion.

I have issues with the native touch keyboard and with external bluetooth keyboards.
I have these issues both in Obsidian (which embeds CodeMirror) and on the website of CodeMirror that demos Vim keybindings.

https://github.com/user-attachments/assets/8f436739-623d-4f62-87df-5f3a03b5afab

Device: Lenovo Tab M11 4GB/128GB

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.