wind: Translate Ctrl-key presses correctly

This commit is contained in:
apio 2023-09-18 07:20:07 +02:00
parent c5227d585c
commit 3540033dd3
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -288,9 +288,9 @@ namespace wind::Keyboard
else
letter = table[code];
if (_islower(letter)) letter = (char)_toupper(letter);
if (_isupper(letter)) letter = 0x40;
if (letter == '@') letter = 0x40;
if (letter > 'Z' && letter < '`') letter = 0x40;
if (_isupper(letter)) letter = letter - 0x40;
if (letter == '@') letter = letter - 0x40;
if (letter > 'Z' && letter < '`') letter = letter - 0x40;
if (letter == '?') letter = 0x7f;
request.letter = letter;
return request;