Dismiss bar panels when clicking on another monitor (#6487)

* Dismiss bar panels when clicking on another monitor

* Preserve keyboard focus for reopened panels

* Harden cross-monitor panel dismissal

* Wait for panel mapping before releasing focus

---------

Co-authored-by: David Heinemeier Hansson <david@hey.com>
This commit is contained in:
Husam
2026-08-01 13:00:24 -05:00
committed by GitHub
co-authored by David Heinemeier Hansson
parent fa95901b6f
commit 3cb3861fbc
4 changed files with 127 additions and 24 deletions
+3 -3
View File
@@ -351,9 +351,9 @@ Panel {
Component.onCompleted: refresh()
// KeyboardPanel takes Exclusive focus at map-time, so SUPER-bound IPC
// summons land with j/k ready to navigate. Keep a default landing point,
// but don't paint the cursor until hover or the first navigation key.
// KeyboardPanel primes focus at open-time, so SUPER-bound IPC summons land
// with j/k ready to navigate. Keep a default landing point, but don't paint
// the cursor until hover or the first navigation key.
onOpenedChanged: {
if (opened) {
refresh()