From cbfde8c8fbae87dd048e6a7060dc380d6e2986be Mon Sep 17 00:00:00 2001 From: Brian Buller Date: Wed, 6 Mar 2019 07:38:48 -0600 Subject: [PATCH] Fix a few things --- app_state.go | 4 ---- screen_about.go | 1 + screen_main.go | 1 + screen_task.go | 1 + 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app_state.go b/app_state.go index fd20c80..6888e6d 100644 --- a/app_state.go +++ b/app_state.go @@ -66,11 +66,7 @@ func (a *AppState) run(parms []string) int { a.uiManager.AddScreen(&MainScreen{}) a.uiManager.AddScreen(&TaskScreen{}) a.uiManager.AddScreen(&AboutScreen{}) - for k := range a.uiManager.GetScreens() { - fmt.Print("Screen:", k, "\n") - } - a.uiManager.SetDisplayScreen(MainScreenId) mainBundle := termboxScreen.Bundle{} mainBundle.SetValue(MainBundleListKey, MainBundleListTodo) diff --git a/screen_about.go b/screen_about.go index a83d80d..23bf10e 100644 --- a/screen_about.go +++ b/screen_about.go @@ -62,6 +62,7 @@ func (screen *AboutScreen) ResizeScreen() { screen.Initialize(nil) } func (screen *AboutScreen) HandleKeyEvent(event termbox.Event) int { return MainScreenId } +func (screen *AboutScreen) HandleNoneEvent(event termbox.Event) int { return AboutScreenId } func (screen *AboutScreen) DrawScreen() { width, height := termbox.Size() diff --git a/screen_main.go b/screen_main.go index 132cbfb..1345b38 100644 --- a/screen_main.go +++ b/screen_main.go @@ -227,6 +227,7 @@ func (screen *MainScreen) HandleKeyEvent(event termbox.Event) int { } return MainScreenId } +func (screen *MainScreen) HandleNoneEvent(event termbox.Event) int { return MainScreenId } func (screen *MainScreen) handleInputKeyEvent(event termbox.Event) int { switch screen.inputField.GetID() { diff --git a/screen_task.go b/screen_task.go index 8789e33..5498c47 100644 --- a/screen_task.go +++ b/screen_task.go @@ -62,6 +62,7 @@ func (screen *TaskScreen) HandleKeyEvent(event termbox.Event) int { } return TaskScreenId } +func (screen *TaskScreen) HandleNoneEvent(event termbox.Event) int { return TaskScreenId } func (screen *TaskScreen) DrawScreen() { screen.drawHeader()