mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-15 02:01:43 +03:00
termui: use q as keybinding to quit the show bug view
This commit is contained in:
parent
760d077134
commit
a645c90121
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user