Merge pull request #98 from y574444354/fix/centos-input

fix(ink): handle enter key on centos
This commit is contained in:
linkai0924 2026-05-15 10:19:59 +08:00 committed by GitHub
commit c207681816
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,7 +36,7 @@ function parseKey(keypress: ParsedKey): [Key, string] {
wheelDown: keypress.name === 'wheeldown',
home: keypress.name === 'home',
end: keypress.name === 'end',
return: keypress.name === 'return',
return: keypress.name === 'return' || keypress.name === 'enter',
escape: keypress.name === 'escape',
fn: keypress.fn,
ctrl: keypress.ctrl,