(event *tcell.EventKey)
| 24 | } |
| 25 | |
| 26 | func isBackKey(event *tcell.EventKey) bool { |
| 27 | if event == nil { |
| 28 | return false |
| 29 | } |
| 30 | |
| 31 | return event.Key() == tcell.KeyEsc || event.Key() == tcell.KeyBackspace || event.Key() == tcell.KeyBackspace2 |
| 32 | } |
| 33 | |
| 34 | // NewUIManager creates a new UI manager |
| 35 | func NewUIManager(app UIApp, executor *Executor) *UIManager { |
no outgoing calls
no test coverage detected