Explorar o código

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

ayn2op %!s(int64=3) %!d(string=hai) anos
pai
achega
639f79d8a5
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      ui/messages_view.go

+ 2 - 0
ui/messages_view.go

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