diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ui/interfaces.go | 2 | ||||
-rw-r--r-- | lib/ui/ui.go | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/ui/interfaces.go b/lib/ui/interfaces.go index c38fcff0..d27afe20 100644 --- a/lib/ui/interfaces.go +++ b/lib/ui/interfaces.go @@ -16,6 +16,8 @@ type Drawable interface { type Interactive interface { // Returns true if the event was handled by this component Event(event tcell.Event) bool + // Indicates whether or not this control will receive input events + Focus(focus bool) } type Simulator interface { diff --git a/lib/ui/ui.go b/lib/ui/ui.go index eb86e70f..ced039fd 100644 --- a/lib/ui/ui.go +++ b/lib/ui/ui.go @@ -54,6 +54,7 @@ func Initialize(conf *config.AercConfig, state.invalidations <- nil })() }) + content.Focus(true) return &state, nil } |