Merge pull request #445 from techniumlabs/master

Using ? to get out of help screen. ESC and RET is also supported
mine
Fernand Galiana 2019-12-28 21:04:36 -07:00 committed by GitHub
commit 34e8a7444c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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),
} }
} }