From db431cb81218b155d159fe96fe24290c24db82e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9E=E3=83=AA=E3=82=A6=E3=82=B9?= Date: Sat, 3 Apr 2021 19:01:56 -0500 Subject: [PATCH] Added Ctrl+Q shortcut for quitting --- tui/tui.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tui/tui.go b/tui/tui.go index 2c434f9..0c6d07d 100644 --- a/tui/tui.go +++ b/tui/tui.go @@ -87,6 +87,8 @@ func TUI(tuiCore TUICore) { if tuiCore.ExitInsertMode(false) == true { return nil } + case tcell.KeyCtrlQ: + tuiCore.App.Stop() } return event