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_011xS58qyP1BjcuCrJcWPxQBpull/20058/head
parent
8bff03f833
commit
e38e24f743
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue