Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix: add back cmd+esc to close split (#2664)

Peter Chinmanfaed8db72c6b
diff --git a/js/app/packages/app/component/settings/Shortcuts.tsx b/js/app/packages/app/component/settings/Shortcuts.tsx
index a299e821a9..f939793981 100644
--- a/js/app/packages/app/component/settings/Shortcuts.tsx
+++ b/js/app/packages/app/component/settings/Shortcuts.tsx
@@ -63,7 +63,7 @@ const shortcutSections: ShortcutSection[] = [
title: 'Splits',
items: [
{ keys: ['\\', `${cmdOrCtrl}+\\`], description: 'Create a split' },
- { keys: [`opt+escape`], description: 'Go home in current split, close split if home' },
+ { keys: [`cmd+escape`], description: 'Go home / close split'},
{ keys: ['shift+escape'], description: 'Spotlight split' },
{ keys: ['shift+h', 'shift+arrowleft'], description: 'Focus split to the left' },
{ keys: ['shift+l', 'shift+arrowright'], description: 'Focus split to the right' },
diff --git a/js/app/packages/app/component/split-layout/registerSplitHotkeys.ts b/js/app/packages/app/component/split-layout/registerSplitHotkeys.ts
index 02b1477e91..b1f50396c1 100644
--- a/js/app/packages/app/component/split-layout/registerSplitHotkeys.ts
+++ b/js/app/packages/app/component/split-layout/registerSplitHotkeys.ts
@@ -35,7 +35,7 @@ export function registerSplitHotkeys(args: {
} = args;
registerHotkey({
scopeId: splitHotkeyScope,
- hotkey: 'opt+escape',
+ hotkey: ['cmd+escape', 'opt+escape'],
condition: () => isNotUnifiedList() || getSplitCount() > 1,
description: () => (isNotUnifiedList() ? 'Go home' : 'Close split'),
keyDownHandler: () => {