Skip to content

Hovering by mouse does not highlight an item in sherlock #167

Description

@DeltaCream

Description

The sherlock that I have has no configuration with main.css. However, this bug also happens if you assume that the "default" main.css is the configuration at this main.css file from the GitHub repository.

What essentially happens is that the selection via the keyboard works. However, hovering the mouse cursor at any row/item, whether or not it is selected by the keyboard will cause it to not be highlighted, as if it wasn't hovered on. In my humble opinion, this does not make for a good user experience as hovering will not be responsive.

Steps to Reproduce

  1. Compile sherlock from source
  2. Either have no main.css file, have an empty main.css file, or use the main.css file as specified at this main.css file from the GitHub repository
  3. Execute sherlock to open it
  4. Hover on any row/item with the mouse. This bug will still happen even if the row/item is selected with the keyboard.

Expected Behavior

  1. Selecting the row/item with the keyboard still highlights it
  2. Hovering the row/item where the keyboard highlights will still highlight it
  3. Hovering on any row/item that is different from where the keyboard highlights can have either of the two things happen:
    a. The hover-by-mouse overrides the selection by the keyboard, or
    b. The item hovered on by the mouse is highlighted as well as the item selected by the keyboard

Screenshots

Image Image Image

Environment

  • Operating System: CachyOS
  • Window Manager: Hyprland
  • Version: v0.1.14

Additional Context

  1. Screenshot 1 shows the scenario where an item is hovered by the mouse and an item is selected by the keyboard
  2. Screenshot 2 shows the scenario where an item is selected only by the keyboard
  3. Screenshot 3 shows the scenario where an item is both selected by the keyboard, and hovered by the mouse, notably losing its highlight as if it wasn't selected

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions