Просмотр исходного кода

Use correct key name for escape

ayntgl 4 лет назад
Родитель
Сommit
5e0a7d57f6
1 измененных файлов с 1 добавлено и 1 удалено
  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("")