浏览代码

Invalidate selected channel when Escape is pressed when the messages view is focused (#265)

ayn2op 3 年之前
父节点
当前提交
8a279e056d
共有 1 个文件被更改,包括 2 次插入0 次删除
  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().