Invalidate selected channel when Escape is pressed when the messages view is focused

This commit is contained in:
ayn2op 2022-12-27 20:14:16 +05:30
parent 3c8b6624ca
commit 639f79d8a5

View file

@ -94,6 +94,8 @@ func (v *MessagesView) onInputCapture(e *tcell.EventKey) *tcell.EventKey {
return v.selectLastMessage(ms)
case "Esc":
v.selected = -1
v.app.view.ChannelsView.selected = nil
v.app.SetFocus(v.app.view)
v.
Clear().