Incorrect keypress order when keys are rapidly input
I'm using a QMK keyboard with home row modifiers, which allows normal keys to act as modifier keys when held. This is usually configured to require the key to be held for a minimum amount of time before it acts as a modifier to allow for rolling the keys when typing (typing the next key while still holding down the previous one). This results in two keys being output simultaneously when the first key is released before the minimum delay, since only at that point does the keyboard know that the key was not used as a modifier. This apparently causes issues in Gtk4 applications, as typing a combination of home row modifier key and normal key causes the keys to be registered in the incorrect order when typing the modifier key first. For example, typing ds
where d
is a modifier key, outputs sd
instead.
This basically makes Gtk4 apps that use the keyboard a lot (especially Console) almost unusable for me as I have to type differently.
I have seen this in Files, Console, Web. Haven't seen the issue in any other applications. I'm using Gnome 44.0.