Unhighlight selected message on Escape event key (#74)

This commit is contained in:
ayntgl 2021-10-16 12:45:29 +04:00 • committed by GitHub
parent be24347e51
commit 3ef4574e03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
ui.go
View file

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