Skip to content

Commit

Permalink
Fix Caps Lock and Backspace mapping for Colemak
Browse files Browse the repository at this point in the history
(cherry picked from commit 906ad64)
  • Loading branch information
5E-324 authored and slouken committed Apr 2, 2024
1 parent f461d91 commit a0522e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/video/windows/SDL_windowsevents.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ static SDL_Scancode VKeytoScancodeFallback(WPARAM vkey)
static SDL_Scancode VKeytoScancode(WPARAM vkey)
{
switch (vkey) {
case VK_BACK:
return SDL_SCANCODE_BACKSPACE;
case VK_CAPITAL:
return SDL_SCANCODE_CAPSLOCK;

case VK_MODECHANGE:
return SDL_SCANCODE_MODE;
case VK_SELECT:
Expand Down

0 comments on commit a0522e4

Please sign in to comment.