4
15
Fork
You've already forked app
3

Command palette returns focus to the mouse even when it has not been used or moved #14

Closed
opened 2026年07月02日 19:49:43 +02:00 by avigatori · 1 comment

What happened

First, thank you for creating and releasing this software! I'm thoroughly enjoying it so far!

A papercut I've noticed: when one opens the command palette and the mouse cursor is positioned in such a way that it rests where the palette appears, then the palette will return focus to the mouse when one uses the keyboard navigation to select items from the list.

So if I open the palette, and e.g. open the "File" entry then the focus will jump back to the mouse' position.

Steps to reproduce

  1. Open the command palette with Ctrl + P
  2. position the mouse cursor over the palette, somewhere at the end
  3. move the focus with the arrow keys to another entry. Maybe something up top like File
  4. Open the entry by pressing the right-arrow key

Expected behaviour

The focus should stay on the just opened item and only move to the coursor on mouse movement

Platform / OS

Guix System (Linux)

Install type

Flatpak

InkyCap version

26.6.18

Notes, logs, or screenshots

Setup:
image

Result of the focus jump:
image

Expected result:
image

### What happened First, thank you for creating and releasing this software! I'm thoroughly enjoying it so far! A papercut I've noticed: when one opens the command palette and the mouse cursor is positioned in such a way that it rests where the palette appears, then the palette will return focus to the mouse when one uses the keyboard navigation to select items from the list. So if I open the palette, and e.g. open the "File" entry then the focus will jump back to the mouse' position. ### Steps to reproduce 1. Open the command palette with `Ctrl` + `P` 2. position the mouse cursor over the palette, somewhere at the end 3. move the focus with the arrow keys to another entry. Maybe something up top like `File` 4. Open the entry by pressing the right-arrow key ### Expected behaviour The focus should stay on the just opened item and only move to the coursor on mouse movement ### Platform / OS Guix System (Linux) ### Install type Flatpak ### InkyCap version 26.6.18 ### Notes, logs, or screenshots Setup: ![image](/attachments/b9b39bd1-7000-4356-9ef9-9c6f6ae05989) Result of the focus jump: ![image](/attachments/492fae58-03d4-4876-849f-1bbe9ff2a220) Expected result: ![image](/attachments/e2314f47-aabb-49c7-8fc1-0b3eea18d782)
Owner
Copy link

Hi, I'm glad this is useful for you and thank you for reporting this issue. I think this should be fixed (f2f85ea0c2). At least as I test locally, it works like your third screenshot. This actually turned out to be an issue in several other places too, so they should all work now.

Hi, I'm glad this is useful for you and thank you for reporting this issue. I think this should be fixed (f2f85ea0c2). At least as I test locally, it works like your third screenshot. This actually turned out to be an issue in several other places too, so they should all work now.
Sign in to join this conversation.
No Branch/Tag specified
main
v26.7.3
v26.7.2
v26.6.18
v26.6.16
v26.6.14
v26.6.12
26.6.10
v26.6.10
v26.6.8
26.6.6
v26.6.2
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
InkyCap/app#14
Reference in a new issue
InkyCap/app
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?