Number keys don't work for web script's `keydown` event, even if Vimium has been "unmapAll"
Open
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:
- Install Vimium-FF 1.67.6 on Firefox 110
- Open Vimium options. Fill "unmapAll" into "Custom key mappings"
- 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> - Press F12 to open console
- Focus the web page. Press some keys. You'll find
keydownevent can't receive 1-9 number key event
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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