Long-press and short-then-long with a context menu open switches between context menus

This commit is contained in:
James Babcock committed 2026-09-01 21:38:52 -07:00
1 parent c364099a8c
commit fddb6ea886
5 files changed
+37

No files matched your search

+7
View File
@@ -68,6 +68,13 @@ export class WindowMenu {
async handleInput(event: InputEvent): Promise<void> {
const stack = this.stack;
if (!stack) return;
// The shell opened its system menu over this window; close ours so the
// two context menus never stack.
if (event.type === "system-menu-opened") {
stack.clearToBase();
this.stack = null;
return;
}
await stack.handleInput(event);
if (stack.isAtBase()) {
this.stack = null;