Sfoglia il codice sorgente

Use correct key name for escape

ayntgl 4 anni fa
parent
commit
5e0a7d57f6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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("")