Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backspace on Colemak keyboard layout doesn't work on Windows #7853

Closed
Susko3 opened this issue Jun 20, 2023 · 1 comment · Fixed by #10468
Closed

Backspace on Colemak keyboard layout doesn't work on Windows #7853

Susko3 opened this issue Jun 20, 2023 · 1 comment · Fixed by #10468
Assignees
Milestone

Comments

@Susko3
Copy link
Contributor

Susko3 commented Jun 20, 2023

On the Colemak keyboard layout, the usual Caps Lock key is mapped to Backspace. This remapping works on linux/wayland, but doesn't on windows (the keycode reports as SDLK_CAPSLOCK even though it should be SDLK_BACKSPACE).

The root cause of this is probably the following code, disallowing caps lock remapping:

/* If this key is one of the non-mappable keys, ignore it */
/* Uncomment the second part re-enable the behavior of not mapping the "`"(grave) key to the users actual keyboard layout */
if ((keymap[scancode] & SDLK_SCANCODE_MASK) /*|| scancode == SDL_SCANCODE_GRAVE*/) {
continue;
}

@slouken
Copy link
Collaborator

slouken commented Aug 4, 2024

Fixed, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants