wind: Translate Ctrl-key presses correctly
This commit is contained in:
parent
08583d5ad4
commit
f8879015ee
@ -288,9 +288,9 @@ namespace wind::Keyboard
|
|||||||
else
|
else
|
||||||
letter = table[code];
|
letter = table[code];
|
||||||
if (_islower(letter)) letter = (char)_toupper(letter);
|
if (_islower(letter)) letter = (char)_toupper(letter);
|
||||||
if (_isupper(letter)) letter = 0x40;
|
if (_isupper(letter)) letter = letter - 0x40;
|
||||||
if (letter == '@') letter = 0x40;
|
if (letter == '@') letter = letter - 0x40;
|
||||||
if (letter > 'Z' && letter < '`') letter = 0x40;
|
if (letter > 'Z' && letter < '`') letter = letter - 0x40;
|
||||||
if (letter == '?') letter = 0x7f;
|
if (letter == '?') letter = 0x7f;
|
||||||
request.letter = letter;
|
request.letter = letter;
|
||||||
return request;
|
return request;
|
||||||
|
Loading…
Reference in New Issue
Block a user