mirror of
https://github.com/manifoldco/promptui.git
synced 2026-03-17 23:59:59 +01:00
fix: end readline listener immediately if interrupt character is received
This commit is contained in:
parent
c2e487d359
commit
45be600477
1 changed files with 2 additions and 0 deletions
|
|
@ -288,6 +288,8 @@ func (s *Select) innerRun(cursorPos, scroll int, top rune) (int, string, error)
|
|||
s.list.PageUp()
|
||||
case key == s.Keys.PageDown.Code || (key == 'l' && !searchMode):
|
||||
s.list.PageDown()
|
||||
case key == readline.CharInterrupt || key == readline.CharKill:
|
||||
return nil, 0, true
|
||||
default:
|
||||
if canSearch && searchMode {
|
||||
cur.Update(string(line))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue