LWJGL Forum

Programming => Bug Reports / RFE => Topic started by: jakethesnake on January 14, 2023, 08:55:28

Title: [BUG] Linux KDE with 'Esc' and 'caps lock' swapped are not honoured.
Post by: jakethesnake on January 14, 2023, 08:55:28
As the title says. I have a user on linux, using KDE to remap his Esc and caps lock buttons. This is remapping is not registered in the GLFW wrapper, and the default bindings are registered.

This seems to be an issue in both LWJGL 3.2 and 3.1

This seem to occur in both GLFWKeyCallback (the key parameter, haven't looked at the scancode) and GLFWCharCallback

I've tried to find something similar in the GLFW bug forums, but to no avail. Just want confirmation that this is indeed a GLFW bug.
Title: Re: [BUG] Linux KDE with 'Esc' and 'caps lock' swapped are not honoured.
Post by: spasi on January 15, 2023, 17:37:53
Hey jakethesnake,

The event handling and key mapping logic lives entirely in GLFW, there's nothing in LWJGL's side that may affect it. It can be verified by running the native events test (https://github.com/glfw/glfw/blob/master/tests/events.c).

You'll likely have more luck reporting this to the GLFW github repo.
Title: Re: [BUG] Linux KDE with 'Esc' and 'caps lock' swapped are not honoured.
Post by: jakethesnake on January 16, 2023, 08:50:52
Quote from: spasi on January 15, 2023, 17:37:53
Hey jakethesnake,

The event handling and key mapping logic lives entirely in GLFW, there's nothing in LWJGL's side that may affect it. It can be verified by running the native events test (https://github.com/glfw/glfw/blob/master/tests/events.c).

You'll likely have more luck reporting this to the GLFW github repo.

Many thanks!