fix: handlers used to work after "exec sh" command

feature: hot key for "exec sh"
This commit is contained in:
Stanislav Pavlovichev
2018-10-12 10:03:27 +03:00
parent f27de1c29e
commit e68f7ba96a
2 changed files with 10 additions and 0 deletions

View File

@@ -116,6 +116,10 @@ func Display() bool {
menu = LogMenu
ui.StopLoop()
})
ui.Handle("/sys/kbd/e", func(ui.Event) {
menu = ExecSh
ui.StopLoop()
})
ui.Handle("/sys/kbd/o", func(ui.Event) {
menu = SingleView
ui.StopLoop()