Skip to content

fix(ozone/nexus): Transfer keyboard focus to next window on destroy OS-21049#132

Merged
caneraltinbasak merged 1 commit into28-x-y-bsfrom
cal/OS-21049-nexus
Apr 20, 2026
Merged

fix(ozone/nexus): Transfer keyboard focus to next window on destroy OS-21049#132
caneraltinbasak merged 1 commit into28-x-y-bsfrom
cal/OS-21049-nexus

Conversation

@caneraltinbasak
Copy link
Copy Markdown

When the topmost focused window is destroyed, keyboard_grabber_ was reset to kNullAcceleratedWidget with no fallback, causing all subsequent keyboard events to be silently dropped until a mouse click or touch reassigned focus.

Fix RemoveWindow() to iterate the remaining windows in reverse order (topmost first) and transfer keyboard focus to the first activatable window. Also call Activate() on the new focus recipient so its delegate is notified via OnActivationChanged(true).

Add NexusWindow::IsActivatable() accessor to support the check from the window manager.

…S-21049

When the topmost focused window is destroyed, keyboard_grabber_ was
reset to kNullAcceleratedWidget with no fallback, causing all subsequent
keyboard events to be silently dropped until a mouse click or touch
reassigned focus.

Fix RemoveWindow() to iterate the remaining windows in reverse order
(topmost first) and transfer keyboard focus to the first activatable
window. Also call Activate() on the new focus recipient so its delegate
is notified via OnActivationChanged(true).

Add NexusWindow::IsActivatable() accessor to support the check from
the window manager.
@caneraltinbasak caneraltinbasak merged commit 1ef798c into 28-x-y-bs Apr 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants