philc / philc/vimium

Mapping <c-h> to previousTab doesn't work when an input is focused.

Open
#3,629 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
Mapping to previousTab only works as long as there is no input focused. If there is an input focused, it will default to the browser's shortcut, which is to open the history tab.

To Reproduce
Map to previousTab, focus an input, press ctrl+h.

Browser and Vimium version

Brave Browser 84.1.11.97
Vimium 1.66
Ubuntu 20.04


I know this is the expected behavior, but it would be great to have an option to always prioritize Vimium's shortcuts over Chrome's. On Ubuntu, there is no way to remap the built-in shortcut on Brave, because the shortcut-remapping extensions available only work for windows, so, if Vimium offered that option, it would allow remapping to previousTab on Brave itself.

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

Start by reproducing the reported mapping with an input focused in Brave on Ubuntu, then investigate how Vimium handles shortcuts in focused inputs and how browser-reserved shortcuts are exposed. Done means the issue's requested prioritization option is clearly supported or its browser limitation is documented, with the ctrl+h and previousTab scenarios verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.