feat(filter): add ctrl+@ keybinding

This commit is contained in:
MuXiu1997 2023-02-09 02:58:43 +08:00
parent 78bb3b5f06
commit 39848f84a3
No known key found for this signature in database
GPG key ID: FF066B943A937BD1

View file

@ -163,6 +163,11 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
}
m.ToggleSelection()
m.CursorUp()
case "ctrl+@":
if m.limit == 1 {
break // no op
}
m.ToggleSelection()
default:
m.textinput, cmd = m.textinput.Update(msg)