feat(app): add Mod+W close-tab shortcut for desktop, simplify Android build scripts, and use universal DMG download

This commit is contained in:
Mohamed Boudra
2026-03-06 22:53:03 +07:00
parent bb300fa2f8
commit 7821a8a8af
6 changed files with 57 additions and 13 deletions
@@ -155,7 +155,24 @@ const SHORTCUT_BINDINGS: readonly KeyboardShortcutBinding[] = [
},
},
{
id: "workspace-tab-close-current-alt-shift-w",
id: "workspace-tab-close-current-mod-w-tauri",
action: "workspace.tab.close.current",
matches: (event) =>
isMod(event) &&
!event.altKey &&
!event.shiftKey &&
(event.code === "KeyW" || event.key.toLowerCase() === "w"),
when: (context) => context.isTauri && !context.commandCenterOpen,
help: {
id: "workspace-tab-close-current",
section: "global",
label: "Close current tab",
keys: ["mod", "W"],
when: (context) => context.isTauri,
},
},
{
id: "workspace-tab-close-current-alt-shift-w-web",
action: "workspace.tab.close.current",
matches: (event) =>
!event.metaKey &&
@@ -163,12 +180,13 @@ const SHORTCUT_BINDINGS: readonly KeyboardShortcutBinding[] = [
event.altKey &&
event.shiftKey &&
(event.code === "KeyW" || event.key.toLowerCase() === "w"),
when: (context) => !context.commandCenterOpen,
when: (context) => !context.isTauri && !context.commandCenterOpen,
help: {
id: "workspace-tab-close-current",
section: "global",
label: "Close current tab",
keys: ["alt", "shift", "W"],
when: (context) => !context.isTauri,
},
},
{