Explorar o código

Unhighlight selected message on Escape event key (#74)

ayntgl %!s(int64=4) %!d(string=hai) anos
pai
achega
3ef4574e03
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      ui.go

+ 2 - 0
ui.go

@@ -388,7 +388,9 @@ func onMessageInputFieldInputCapture(e *tcell.EventKey) *tcell.EventKey {
 	case tcell.KeyEscape:
 		messageInputField.SetText("")
 		messageInputField.SetTitle("")
+
 		selectedMessage = 0
+		messagesView.Highlight()
 	}
 
 	return e