Clear message InputField text on Escape event key (#72)
This commit is contained in:
parent
2400226ee1
commit
4b46d39d8e
1 changed files with 1 additions and 0 deletions
1
ui.go
1
ui.go
|
|
@ -371,6 +371,7 @@ func onMessageInputFieldInputCapture(e *tcell.EventKey) *tcell.EventKey {
|
|||
text = messageInputField.GetText() + text
|
||||
messageInputField.SetText(text)
|
||||
case tcell.KeyEscape:
|
||||
messageInputField.SetText("")
|
||||
messageInputField.SetTitle("")
|
||||
selectedMessage = 0
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue