termui: use q as keybinding to quit the show bug view

This commit is contained in:
Michael Muré 2018-09-19 19:30:04 +02:00
parent 760d077134
commit a645c90121
No known key found for this signature in database
GPG Key ID: A4457C029293126F

View File

@ -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
}