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
pull/20058/head
Claude 2026-03-30 12:24:41 +00:00
parent 8bff03f833
commit e38e24f743
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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()