Taking keyboard input from rebound keys

My Caps lock and Esc keys are swapped/rebound with each other.
If I use either glfwGetKey or a key_callback and press Esc, it only returns the key/scancode of Esc even though it should be rebound to Caps Lock and vice versa.
So how should I go about getting the actual rebound input?

Edit: Managed to circumvent the issue by remapping the raw input of the keys though xremap. Short of a feature request I don’t think there’s much else to be done regarding this issue, so it can be marked as solved.

1 Like

Thanks for posting your solution.

It’s possible that this is related to how keyboard input uses the US layout to map key input. There is an open issue about using untranslated key mappings.