Add things
This commit is contained in:
@ -103,6 +103,19 @@ func New(
|
||||
key.WithHelp("i", "filter"),
|
||||
)
|
||||
|
||||
// Disable the quit key binding - we don't want Esc to quit the list
|
||||
// Esc should only cancel filtering mode
|
||||
l.KeyMap.Quit = key.NewBinding(
|
||||
key.WithKeys(), // No keys bound
|
||||
key.WithHelp("", ""),
|
||||
)
|
||||
|
||||
// Also disable force quit
|
||||
l.KeyMap.ForceQuit = key.NewBinding(
|
||||
key.WithKeys(), // No keys bound
|
||||
key.WithHelp("", ""),
|
||||
)
|
||||
|
||||
p := &Picker{
|
||||
common: c,
|
||||
list: l,
|
||||
|
||||
Reference in New Issue
Block a user