Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use keyboard to select text after focus moved away from the text's place #1309

Open
cesm1980 opened this issue Feb 1, 2025 · 0 comments

Comments

@cesm1980
Copy link

cesm1980 commented Feb 1, 2025

Describe the bug

After clicking with the mouse or even when activating other elements in the page with linkhints, in a webpage, the LinkHints.activateSelect command doesn't change the keyboard focus to the highlighted text associated after we type the letters, so nothing happens when trying to contract or expand the highlighted portion. The only way to make it work again is by manually clicking with the mouse on the text block, or reloading the page with F5, then activating the command again and typing the letters to trigger it, which does defeat the purpose of wanting to use this command. But If no other element in the page was interacted with or given focus, then LinkHints.activateSelect command works fine and i am able to contract/expand the highlighted part with the cursor keys as desired.

To Reproduce

Steps to reproduce the behavior:

  1. After a webpage, like google results for example is loaded, try opening a link of another element in the page, either with the mouse, using TAB or using linkhints, so that the target element gets focused on.
  2. In case it opened the link into another tab, switch back to the initial page.
  3. Try using the key associated with LinkHints.activateSelect and try selecting any text element on the page as usual. It will do nothing when trying to expand or change the highlighted portion, which worked fine before changing focus to other elements, meaning the keyboard focus is somehow still stuck on the last interacted element instead of the selected text portion.

Browser, OS and Vimium C versions

  • Browser name: Vivaldi
  • Browser version: 7.1.3570.42 (Stable channel) (64-bit)
  • Browser name: Edge
  • Browser version: 132.0.2957.127 (Official build) (64-bit)
  • Vimium C version: 2.11.3
  • OS name and version: Windows 11 Version 23H2 (Build 22631.4751)

Is there a way to solve this problem besides reloading the page or clicking with the mouse on the text element? I tried the nextframe and mainframe commands, and they have no effect at this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant