fix(win32): do not ignore altGr modifier in ToUnicode calls

This commit is contained in:
CJ van den Berg 2026-02-18 22:20:40 +01:00
parent 58bc803930
commit 096c13db05
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -832,8 +832,6 @@ fn sendKey(
const max_char_count = 20; const max_char_count = 20;
var char_buf: [max_char_count + 1]u16 = undefined; var char_buf: [max_char_count + 1]u16 = undefined;
// release control key when getting the unicode character of this key
keyboard_state[@intFromEnum(win32.VK_CONTROL)] = 0;
const unicode_result = win32.ToUnicode( const unicode_result = win32.ToUnicode(
winkey.vk, winkey.vk,
win_key_flags.scan_code, win_key_flags.scan_code,