ui/app/internal/input: redraw if focus events was added

The key queue might generate focus events. Schedule a redraw if so.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-07-21 12:50:53 +02:00
parent 7582b835bc
commit 3f7735ccdf
+4
View File
@@ -49,6 +49,10 @@ func (q *Router) Frame(ops *ui.Ops) {
q.pqueue.Frame(ops, &q.handlers)
q.kqueue.Frame(ops, &q.handlers)
if q.handlers.Updated() {
q.wakeup = true
q.wakeupTime = time.Time{}
}
}
func (q *Router) Add(e input.Event) bool {