Browse Source

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

ayntgl 4 năm trước cách đây
mục cha
commit
4b46d39d8e
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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
 	}