瀏覽代碼

Use correct key name for escape

ayntgl 4 年之前
父節點
當前提交
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("")