A few fixes
This commit is contained in:
@@ -92,7 +92,7 @@ func (ui *Ui) run() error {
|
||||
|
||||
case *tcell.EventKey:
|
||||
if ev.Key() == tcell.KeyCtrlC {
|
||||
ui.stop()
|
||||
ui.Exit()
|
||||
return nil
|
||||
}
|
||||
ui.screen.HandleKey(ev)
|
||||
@@ -115,7 +115,7 @@ func (ui *Ui) SetScreen(scr *UiScreen) {
|
||||
ui.screen.HandleResize(tcell.NewEventResize(ui.GetSize()))
|
||||
}
|
||||
|
||||
func (ui *Ui) stop() { ui.running = false }
|
||||
func (ui *Ui) Exit() { ui.running = false }
|
||||
func (ui *Ui) cleanup() { ui.tScreen.Fini() }
|
||||
|
||||
const letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
|
||||
Reference in New Issue
Block a user