philc / philc/vimium

Number keys don't work for web script's `keydown` event, even if Vimium has been "unmapAll"

Open
#4,233 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
27k
Forks
2.6k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
I set Vimium to "unmapAll". Number keys can't work on web.

To Reproduce
Steps to reproduce the behavior:

  1. Install Vimium-FF 1.67.6 on Firefox 110
  2. Open Vimium options. Fill "unmapAll" into "Custom key mappings"
  3. Open this html file in Firefox:
    <html >
      <head>
        <title>key test</title>
        <script>
            document.addEventListener('keydown', function(evt) {
                console.log(evt);
            });
        </script>
      </head>
      <body>
        key test. show in console
      </body>
    </html>
    
    
  4. Press F12 to open console
  5. Focus the web page. Press some keys. You'll find keydown event can't receive 1-9 number key event

Contributor guide

Open the contributing guide

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.

Research direction

Reproduce the behavior in Firefox 110 with Vimium-FF 1.67.6, the custom mapping set to "unmapAll", and the provided HTML keydown listener. Start by tracing how Vimium handles number-key events under that mapping. Done means number keys 1–9 reach the page's keydown listener while other Vimium mappings remain unmapped.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.