forked from joejulian/gio
app: [Wayland] process key repeat events properly
The recent IME changes broke Wayland key repeating. This change fixes it. Fixes: https://todo.sr.ht/~eliasnaur/gio/359 Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+6
-1
@@ -1297,7 +1297,12 @@ func (r *repeatState) Repeat(d *wlDisplay) {
|
||||
break
|
||||
}
|
||||
for _, e := range d.xkb.DispatchKey(r.key, key.Press) {
|
||||
r.win.Event(e)
|
||||
if ee, ok := e.(key.EditEvent); ok {
|
||||
// There's no support for IME yet.
|
||||
r.win.EditorInsert(ee.Text)
|
||||
} else {
|
||||
r.win.Event(e)
|
||||
}
|
||||
}
|
||||
r.last += delay
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user