Browse Source

Use correct key name for escape

ayntgl 4 năm trước cách đây
mục cha
commit
5e0a7d57f6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      ui/handlers.go

+ 1 - 1
ui/handlers.go

@@ -313,7 +313,7 @@ func onMessageInputFieldInputCapture(app *App, e *tcell.EventKey) *tcell.EventKe
 		text = app.MessageInputField.GetText() + text
 		app.MessageInputField.SetText(text)
 		return nil
-	case "Escape":
+	case "Esc":
 		app.MessageInputField.SetText("")
 		app.MessageInputField.SetTitle("")