summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorzerone0x <[email protected]>2026-01-10 22:53:52 +0800
committerGitHub <[email protected]>2026-01-10 08:53:52 -0600
commitb6b009775582d2cebe475b82fe0130f140f6572a (patch)
treebdb62cf4ce79f35dfdc6a7292874cb9d23b80eb0
parentafb1cad26da1490d534e2c641b6bd69d9d9acd7d (diff)
downloadopencode-b6b009775582d2cebe475b82fe0130f140f6572a.tar.gz
opencode-b6b009775582d2cebe475b82fe0130f140f6572a.zip
fix(ui): allow text editing shortcuts in search dialogs on macOS (#7419)
-rw-r--r--packages/ui/src/hooks/use-filtered-list.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/ui/src/hooks/use-filtered-list.tsx b/packages/ui/src/hooks/use-filtered-list.tsx
index 242d16a25..1b3be4b4c 100644
--- a/packages/ui/src/hooks/use-filtered-list.tsx
+++ b/packages/ui/src/hooks/use-filtered-list.tsx
@@ -82,6 +82,8 @@ export function useFilteredList<T>(props: FilteredListProps<T>) {
const selected = flat()[selectedIndex]
if (selected) props.onSelect?.(selected, selectedIndex)
} else {
+ // Skip list navigation for text editing shortcuts (e.g., Option+Arrow, Option+Backspace on macOS)
+ if (event.altKey || event.metaKey) return
list.onKeyDown(event)
}
}