[fix] restore Windows remote keyboard shortcuts and input recovery

This commit is contained in:
dijunkun
2026-10-09 03:43:14 +08:00
parent 3cfe7cbb80
commit 06e23007ed
10 changed files with 626 additions and 312 deletions
+13 -1
View File
@@ -282,9 +282,21 @@ export component StreamWindow inherits Window {
root.display-menu-open = false;
root.shortcut-menu-open = false;
}
input-focus.focus();
// Changed handlers may run while Winit/AccessKit is building the
// accessibility tree. Changing focus there re-enters its borrowed
// adapter and aborts the process; defer focus to the event loop.
input-focus-timer.running = true;
input-focus-timer.restart();
root.keyboard-focus-changed(!root.remote-update-visible);
}
input-focus-timer := Timer {
interval: 1ms;
running: false;
triggered => {
self.running = false;
input-focus.focus();
}
}
private property <bool> control-tooltip-visible: false;
private property <ControlBarTooltip> hovered-control: {
if root.window-active && !root.control-dragging