Hmm, that doesn't work if e.g. Num Lock is pressed.
Next thought: try doing gdk_keymap_add_virtual_modifiers then mask out everything except SHIFT, CONTROL, SUPER, HYPER, and META (and maybe LOCK). Hopefully there is already a library for this, or there is a better approach.
Hmm, that doesn't work if e.g. Num Lock is pressed.
Next thought: try doing gdk_keymap_ add_virtual_ modifiers then mask out everything except SHIFT, CONTROL, SUPER, HYPER, and META (and maybe LOCK). Hopefully there is already a library for this, or there is a better approach.