Invalidate selected channel when Escape is pressed when the messages view is focused
This commit is contained in:
parent
3c8b6624ca
commit
639f79d8a5
1 changed files with 2 additions and 0 deletions
|
|
@ -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().
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue