diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-24 09:16:56 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-24 09:16:56 +1000 |
commit | 6c389df57dacc1b65e1891c247b20a6d64f94702 (patch) | |
tree | a25781f82e9012ccecef4e4327b8634dcf066e7f /pkg | |
parent | 22de5e7b235389bcbb32e132ddc86c8726516268 (diff) | |
parent | 110ff38c0d4a40ff450086480fe8ebe0fd2ed61d (diff) |
Merge pull request #200 from remyabel/feature/esc-quits
Esc will quit when not in popup, fixes #197
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/gui/keybindings.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index e0351b88e..8041d14ff 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -16,6 +16,7 @@ func (gui *Gui) keybindings(g *gocui.Gui) error { bindings := []Binding{ {ViewName: "", Key: 'q', Modifier: gocui.ModNone, Handler: gui.quit}, {ViewName: "", Key: gocui.KeyCtrlC, Modifier: gocui.ModNone, Handler: gui.quit}, + {ViewName: "", Key: gocui.KeyEsc, Modifier: gocui.ModNone, Handler: gui.quit}, {ViewName: "", Key: gocui.KeyPgup, Modifier: gocui.ModNone, Handler: gui.scrollUpMain}, {ViewName: "", Key: gocui.KeyPgdn, Modifier: gocui.ModNone, Handler: gui.scrollDownMain}, {ViewName: "", Key: gocui.KeyCtrlU, Modifier: gocui.ModNone, Handler: gui.scrollUpMain}, |