diff options
| author | zerone0x <[email protected]> | 2026-01-10 22:53:52 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-10 08:53:52 -0600 |
| commit | b6b009775582d2cebe475b82fe0130f140f6572a (patch) | |
| tree | bdb62cf4ce79f35dfdc6a7292874cb9d23b80eb0 | |
| parent | afb1cad26da1490d534e2c641b6bd69d9d9acd7d (diff) | |
| download | opencode-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.tsx | 2 |
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) } } |
