From 30e38aab0849d28eaea11c5e1f9f9423a0999e0d Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Tue, 11 Sep 2018 17:45:59 +0200 Subject: termui: use Esc key to quit instead of 'q' to free it for a "query" feature --- termui/termui.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'termui/termui.go') diff --git a/termui/termui.go b/termui/termui.go index 581db670..879ec2ea 100644 --- a/termui/termui.go +++ b/termui/termui.go @@ -76,6 +76,8 @@ func initGui(action func(ui *termUI) error) { ui.g.SetManagerFunc(layout) + ui.g.InputEsc = true + err = keybindings(ui.g) if err != nil { -- cgit