Prevent <Alt+q> from being handled by Wikipedia site
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 want Vimium to treat <Alt+q> shortcut as prevTab command and <Alt+w> as nextTab. So I define the following mappings:
map <A-q> previousTab
map <A-w> nextTab
The mappings works fine on most sites except wikipedia.org. On wikipedia, pressing <Alt+q> does switch tab as desired, but also makes wikipedia to open it's 'Special pages' which is very annoying. I think that this is because <Alt+q> is not handled by Vimium only, but also passed down to sites. Please make an option to selectively prevent <Alt+*> bindings from being handled by sites!
To Reproduce
- Define
map <A-q> previousTaboption in settings - Go to URL 'https://wikipedia.org'
- Press
<Alt+q> - Now Vimium switches tabs (desired) but see also how Wikipedia opens its 'Special Pages` page (undesired)
Browser and Vimium version
OS Linux
Chromium 84.0.4147.89 (development build) (64 bits)
Vimium 1.66
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
Start by reproducing the mapped behavior on wikipedia.org with the reported mapping and confirm both tab switching and Wikipedia’s Special pages action. Then trace Vimium’s mapped-key event handling and determine how a setting could stop the site action while preserving prevTab/nextTab; done means the configured Alt mapping switches tabs without Wikipedia handling it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100