about summary refs log tree commit diff stats
path: root/widgets
diff options
context:
space:
mode:
authorJeffas <dev@jeffas.io>2019-07-16 16:33:47 +0100
committerDrew DeVault <sir@cmpwn.com>2019-07-17 16:00:02 -0400
commit8534720e724f4fd38c7ef4fed1e95bc10aa08bfa (patch)
treea5e734c50604f659d6ad2476a8fedc488140b9c0 /widgets
parent038bf711fae3305a57467392ae2c281caa15bbb9 (diff)
downloadaerc-8534720e724f4fd38c7ef4fed1e95bc10aa08bfa.tar.gz
When reviewing an email don't pass characters on
This stops characters being passed to the focused box when reviewing an
email. To edit headers the user should go back to the edit page.
Diffstat (limited to 'widgets')
-rw-r--r--widgets/compose.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/widgets/compose.go b/widgets/compose.go
index d0a4629..a68bbe1 100644
--- a/widgets/compose.go
+++ b/widgets/compose.go
@@ -177,7 +177,10 @@ func (c *Composer) Bindings() string {
 }
 
 func (c *Composer) Event(event tcell.Event) bool {
-	return c.focusable[c.focused].Event(event)
+	if c.editor != nil {
+		return c.focusable[c.focused].Event(event)
+	}
+	return false
 }
 
 func (c *Composer) Focus(focus bool) {
5c ^
a654e4ec ^
9e751bb8 ^

e5c11a51 ^
ee67ca53 ^
4690ce81 ^
4a39d12d ^
a654e4ec ^
e5c11a51 ^
3e1349d2 ^
9e751bb8 ^

dcc060c7 ^

a654e4ec ^



e5c11a51 ^






















a654e4ec ^

dcc060c7 ^
e5c11a51 ^
a654e4ec ^
204dae92 ^






6c52e24e ^
204dae92 ^
9e751bb8 ^

204dae92 ^

9e751bb8 ^

204dae92 ^




6c52e24e ^
204dae92 ^
9e751bb8 ^

204dae92 ^

9e751bb8 ^

204dae92 ^




6c52e24e ^
204dae92 ^
9e751bb8 ^
204dae92 ^

9e751bb8 ^

204dae92 ^


6c52e24e ^
204dae92 ^
201458e3 ^
6c52e24e ^
204dae92 ^

6c52e24e ^
204dae92 ^




6c52e24e ^
204dae92 ^


6c52e24e ^
201458e3 ^
204dae92 ^



6c52e24e ^
204dae92 ^


201458e3 ^



6c52e24e ^

204dae92 ^


6c52e24e ^
204dae92 ^


6c52e24e ^
204dae92 ^


201458e3 ^



6c52e24e ^

204dae92 ^









201458e3 ^
204dae92 ^





dcc060c7 ^


a654e4ec ^
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175