From f8879015ee9abf85a02929c8f696b31ae56f4df2 Mon Sep 17 00:00:00 2001 From: apio Date: Mon, 18 Sep 2023 07:20:07 +0200 Subject: [PATCH] wind: Translate Ctrl-key presses correctly --- wind/Keyboard.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wind/Keyboard.cpp b/wind/Keyboard.cpp index e0941b49..ba95ce9e 100644 --- a/wind/Keyboard.cpp +++ b/wind/Keyboard.cpp @@ -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;