summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ui/interfaces.go2
-rw-r--r--lib/ui/ui.go1
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/ui/interfaces.go b/lib/ui/interfaces.go
index c38fcff..d27afe2 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 eb86e70..ced039f 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
 }
 
im local scopes' href='/akkartik/mu/commit/factorial.mu?h=hlt&id=77d5b5d658830bd24724f945e0d6ddf6a06adc0e'>77d5b5d6 ^
32241605 ^
b96af395 ^

ce87c19e ^

1ead3562 ^
08b48a8d ^
c1d92c9d ^
ce87c19e ^

32241605 ^
b96af395 ^
08b48a8d ^
b96af395 ^


bc643692 ^
b96af395 ^
bafc7192 ^
b96af395 ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33