mirror of
https://fastgit.cc/https://github.com/anomalyco/opencode
synced 2026-04-30 22:00:53 +08:00
fix: remove invalid alt/meta properties from KeyEvent check
KeyEvent only has ctrl, not alt or meta. Simplify the modifier check. https://claude.ai/code/session_011xS58qyP1BjcuCrJcWPxQB
This commit is contained in:
@@ -196,7 +196,7 @@ export function DialogSelect<T>(props: DialogSelectProps<T>) {
|
||||
if (evt.name === "home") moveTo(0)
|
||||
if (evt.name === "end") moveTo(flat().length - 1)
|
||||
|
||||
if (props.numbered && !evt.ctrl && !evt.alt && !evt.meta) {
|
||||
if (props.numbered && !evt.ctrl) {
|
||||
const num = parseInt(evt.name, 10)
|
||||
if (num >= 1 && num <= 9 && num <= flat().length) {
|
||||
evt.preventDefault()
|
||||
|
||||
Reference in New Issue
Block a user