Skip to content

Auto-remove focus from text fields when activating Link Hints #108

@yosatak

Description

@yosatak

Problem

When Link Hints are displayed, if an INPUT or TEXTAREA element is currently focused, the hint key inputs (like letters or numbers) are inadvertently entered into the text field instead of being processed as link hint commands. This creates confusion and disrupts the intended workflow when trying to navigate using Link Hints.

For example, if I'm typing in a search box and then activate Link Hints, pressing hint keys to select a link will continue typing into the search box rather than selecting the intended link.

Suggestion

Automatically remove focus (blur) from INPUT and TEXTAREA elements when Link Hints are activated. This would ensure that:

  1. All hint key inputs are properly captured by the Link Hints extension
  2. Users don't accidentally modify text in form fields while navigating
  3. The Link Hints functionality works consistently regardless of what element was previously focused

The focus could potentially be restored to the original element if the user cancels Link Hints without selecting a link.

Debug info

Firefox 139.0 on OpenBSD (install from pkg_add)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions