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[hotkeys]: add runWithInputFocused arg to relevant hotkeys (#40)

Peter Chinman19d1736ed568
diff --git a/js/app/packages/app/component/GlobalHotkeys.tsx b/js/app/packages/app/component/GlobalHotkeys.tsx
index a2a4295906..dee1ee38f8 100644
--- a/js/app/packages/app/component/GlobalHotkeys.tsx
+++ b/js/app/packages/app/component/GlobalHotkeys.tsx
@@ -212,6 +212,7 @@ export default function GlobalShortcuts() {
return true;
},
icon: AiInstructionsIcon,
+ runWithInputFocused: true,
});
if (ENABLE_SEARCH_SERVICE) {
@@ -236,6 +237,7 @@ export default function GlobalShortcuts() {
return true;
},
activateCommandScope: true,
+ runWithInputFocused: true,
displayPriority: 10,
});
@@ -258,6 +260,7 @@ export default function GlobalShortcuts() {
return true;
},
activateCommandScope: true,
+ runWithInputFocused: true,
});
themes().forEach((theme) => {
@@ -279,6 +282,7 @@ export default function GlobalShortcuts() {
return true;
},
activateCommandScope: true,
+ runWithInputFocused: true,
});
themes().forEach((theme) => {
@@ -303,6 +307,7 @@ export default function GlobalShortcuts() {
setThemeShouldMatchSystem((prev) => !prev);
return true;
},
+ runWithInputFocused: true,
});
registerHotkey({
@@ -312,6 +317,7 @@ export default function GlobalShortcuts() {
setMonochromeIcons(!monochromeIcons());
return true;
},
+ runWithInputFocused: true,
});
return '';