refactor(chat): simplify input cancel path
This commit is contained in:
parent
1927b90e02
commit
c4779f537f
1 changed files with 1 additions and 2 deletions
|
|
@ -147,9 +147,8 @@ func (mi *messageInput) Update(msg tview.Msg) tview.Cmd {
|
|||
case keybind.Matches(msg, mi.cfg.Keybinds.MessageInput.Cancel.Keybind):
|
||||
if mi.chat.GetVisible(mentionsListLayerName) {
|
||||
return mi.stopTabCompletion()
|
||||
} else {
|
||||
mi.reset()
|
||||
}
|
||||
mi.reset()
|
||||
return nil
|
||||
case keybind.Matches(msg, mi.cfg.Keybinds.MessageInput.TabComplete.Keybind):
|
||||
return mi.tabComplete()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue