Repository navigation
Add a keyboard shortcut that reveals and focuses the dock - #50812
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
2b16686 to
cd8e1c5
Compare
The dock could only be reached with the mouse. If it was set to auto-hide, you had to know where to shove the pointer to get it back. Now Win+Alt+D reveals it, puts keyboard focus on the first item, and a second press hands focus back to where you were. The binding is editable on the Dock settings page. Escape backs out of the dock the same way a second press does. An auto-hide dock holds still while it has focus so it can't slide out from under you mid-keypress. Closes #45595 Closes #50540 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: c01c4df3-a6f1-422d-a063-c865cc9c2d2a
Windows 11 already owns Win+Alt+D for the taskbar clock, so RegisterHotKey failed and the shortcut silently did nothing. Win+Alt+J keeps the same modifiers as the palette shortcut and isn't claimed by Windows. Also focus the first dock item with FocusState.Keyboard. Programmatic focus draws no focus rect, so on a pinned dock a working shortcut still looked dead. Log a warning when hotkey registration fails so the next collision is easy to spot. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: c01c4df3-a6f1-422d-a063-c865cc9c2d2a
97def0a to
82021d4
Compare
|
Michael Jolley (@michaeljolley) Do you really want to close #50540 as well? |
I did, yes. But I just re-read. They say two different things and I was focused on the first:
That's two separate things. This PR uses a keybind to show/hide and focus but won't disable. In fact, I don't think we'll do a keybind to toggle enable/disable. So, this closes his first sentence, and we won't do the second. I mean, I guess that means it's closed but we need to tell the OP. |
The dock focus shortcut from #50812 was registered as a global hotkey even when the dock was turned off, so Win+Alt+J got claimed for something that couldn't do anything. ## The plan - Only register the dock focus hotkey when the dock is enabled. - Treat `EnableDock` as a hotkey-relevant setting so turning the dock on or off re-registers hotkeys right away. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
What's going on
The dock is mouse-only today. Set it to auto-hide and it gets worse, because you have to remember which edge to shove the pointer at before you can click anything. Keyboard users had no way in at all.
This change adds a Win+Alt+J default dock activation/focus binding. The dock must be enabled for this to apply, but if it is, the keybinding:
Closes #45595
Closes #50540
Video? Video!
Dock with auto-hide turned on. Me hitting Win+Alt+J
Recording.2026-09-27.174659.mp4