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(soup): consume cmd+f in search bar instead of triggering browser find (#4757)

gbirman1321cee17820
diff --git a/apps/web/src/features/next-soup/soup-view/filters-bar/soup-view-search-bar.tsx b/apps/web/src/features/next-soup/soup-view/filters-bar/soup-view-search-bar.tsx
index 24e3927d25..5d0f377c14 100644
--- a/apps/web/src/features/next-soup/soup-view/filters-bar/soup-view-search-bar.tsx
+++ b/apps/web/src/features/next-soup/soup-view/filters-bar/soup-view-search-bar.tsx
@@ -11,6 +11,7 @@ import XIcon from '@phosphor/x.svg?component-solid';
import { cn, Hotkey } from '@ui';
import {
$getRoot,
+ $selectAll,
COMMAND_PRIORITY_HIGH,
KEY_ARROW_DOWN_COMMAND,
} from 'lexical';
@@ -119,8 +120,10 @@ export const SoupSearchbar = (props: SoupSearchbarProps) => {
scopeId: panel.splitHotkeyScope,
registrationType: 'add',
description: 'Search',
+ runWithInputFocused: true,
keyDownHandler: () => {
editor.controls.focus();
+ editor.controls.getLexical().update(() => $selectAll());
return true;
},
});