I noticed that the constants in the GDK have a keyval value, which differ depending on the layout, unlike keycode.
I have come across many times that in GTK applications, shortcuts work only in the English layout, which is extremely inconvenient.
Here my little experiment on nim:
proc keyPressedCb(self: EventControllerKey, keyval: int, keycode: int, state: gdk4.ModifierType): bool = echo "keycode = ", keycode echo "keyval = ", keyval echo "gdk4.KEY_h = ", gdk4.KEY_h
And when pressed H key output is:
keycode = 43 keyval = 104 gdk4.KEY_h = 104
Maybe all constants should match keycode instead of keyvalue?