mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 01:45:36 +00:00
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
|
break
|
||||||
}
|
}
|
||||||
for _, e := range d.xkb.DispatchKey(r.key, key.Press) {
|
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
|
r.last += delay
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user