forked from Blendman974/faceclaw
Long-press and short-then-long with a context menu open switches between context menus
This commit is contained in:
1 parent
c364099a8c
commit
fddb6ea886
5 files changed
+37
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user