diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-19 19:30:04 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-19 19:30:04 +0200 |
commit | a645c901213924921d42a01af07e87d11cdb0b81 (patch) | |
tree | 59ffe6e761b19bdfa235beabde767f26f1b9f6d6 | |
parent | 760d077134a515c2c6f8c693e9fb7eac06429dbf (diff) | |
download | git-bug-a645c901213924921d42a01af07e87d11cdb0b81.tar.gz |
termui: use q as keybinding to quit the show bug view
-rw-r--r-- | termui/show_bug.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/termui/show_bug.go b/termui/show_bug.go index d2e4fc09..560ac765 100644 --- a/termui/show_bug.go +++ b/termui/show_bug.go @@ -94,7 +94,7 @@ func (sb *showBug) layout(g *gocui.Gui) error { } v.Clear() - fmt.Fprintf(v, "[Esc] Save and return [←↓↑→,hjkl] Navigation ") + fmt.Fprintf(v, "[q] Save and return [←↓↑→,hjkl] Navigation ") if sb.isOnSide { fmt.Fprint(v, "[a] Add label [r] Remove label") @@ -113,7 +113,7 @@ func (sb *showBug) layout(g *gocui.Gui) error { func (sb *showBug) keybindings(g *gocui.Gui) error { // Return - if err := g.SetKeybinding(showBugView, gocui.KeyEsc, gocui.ModNone, sb.saveAndBack); err != nil { + if err := g.SetKeybinding(showBugView, 'q', gocui.ModNone, sb.saveAndBack); err != nil { return err } |