refactor(chat): simplify input cancel path

This commit is contained in:
ayn2op 2026-05-11 23:07:18 -04:00
parent 1927b90e02
commit c4779f537f

View file

@ -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()