Procházet zdrojové kódy

Clear message InputField text on Escape event key (#72)

ayntgl před 4 roky
rodič
revize
4b46d39d8e
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      ui.go

+ 1 - 0
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
 	}