aboutsummaryrefslogtreecommitdiffstats
path: root/termui
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-19 19:30:04 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-19 19:30:04 +0200
commita645c901213924921d42a01af07e87d11cdb0b81 (patch)
tree59ffe6e761b19bdfa235beabde767f26f1b9f6d6 /termui
parent760d077134a515c2c6f8c693e9fb7eac06429dbf (diff)
downloadgit-bug-a645c901213924921d42a01af07e87d11cdb0b81.tar.gz
termui: use q as keybinding to quit the show bug view
Diffstat (limited to 'termui')
-rw-r--r--termui/show_bug.go4
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
}