diff options
| author | Ariane Emory <[email protected]> | 2026-01-16 16:55:46 -0500 |
|---|---|---|
| committer | opencode <[email protected]> | 2026-01-16 21:57:59 +0000 |
| commit | 626fa1462bb139d02a9d34a5864af8bd746aa2da (patch) | |
| tree | 9cba4cc535d8ce153b9069fa28615649fd3f4875 /packages | |
| parent | 968239bb76f953385e7c363806c143536f2e5139 (diff) | |
| download | opencode-626fa1462bb139d02a9d34a5864af8bd746aa2da.tar.gz opencode-626fa1462bb139d02a9d34a5864af8bd746aa2da.zip | |
fix: make home/end keys work in menu list modal windows (resolves #7190) (#8347)
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui/ui/dialog-select.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/ui/dialog-select.tsx b/packages/opencode/src/cli/cmd/tui/ui/dialog-select.tsx index f7d7306d0..f1cdaaa52 100644 --- a/packages/opencode/src/cli/cmd/tui/ui/dialog-select.tsx +++ b/packages/opencode/src/cli/cmd/tui/ui/dialog-select.tsx @@ -161,6 +161,8 @@ export function DialogSelect<T>(props: DialogSelectProps<T>) { if (evt.name === "down" || (evt.ctrl && evt.name === "n")) move(1) if (evt.name === "pageup") move(-10) if (evt.name === "pagedown") move(10) + if (evt.name === "home") moveTo(0) + if (evt.name === "end") moveTo(flat().length - 1) if (evt.name === "return") { const option = selected() if (option) { |
