Using ? to get out of help screen. ESC and RET is also supported

mine
ageekymonk 2019-12-20 06:34:06 +11:00
parent a170cf5ff0
commit deac5c85a7
No known key found for this signature in database
GPG Key ID: 203F036E24CC4D77
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,8 @@ func newHelpView(app *appView, current ui.Igniter, hh ui.Hints) *helpView {
func (v *helpView) bindKeys() { func (v *helpView) bindKeys() {
v.actions = ui.KeyActions{ v.actions = ui.KeyActions{
tcell.KeyEsc: ui.NewKeyAction("Back", v.backCmd, true), ui.KeyHelp: ui.NewKeyAction("Back", v.backCmd, true),
tcell.KeyEsc: ui.NewKeyAction("Back", v.backCmd, false),
tcell.KeyEnter: ui.NewKeyAction("Back", v.backCmd, false), tcell.KeyEnter: ui.NewKeyAction("Back", v.backCmd, false),
} }
} }