From df532ff45c05fb5047a87c9f24d13c7613a321b3 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Sat, 22 May 2021 16:39:31 +0300 Subject: [PATCH] [UWP] Add missing `get_scansym` argument. (cherry picked from commit 494c54b98cc148ac6f9c59b380e02483b57bc632) --- platform/uwp/app.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/uwp/app.cpp b/platform/uwp/app.cpp index 8e2b6da5c25..cb742b62dcc 100644 --- a/platform/uwp/app.cpp +++ b/platform/uwp/app.cpp @@ -393,7 +393,7 @@ void App::key_event(Windows::UI::Core::CoreWindow ^ sender, bool p_pressed, Wind ke.type = OS_UWP::KeyEvent::MessageType::KEY_EVENT_MESSAGE; ke.unicode = 0; ke.scancode = KeyMappingWindows::get_keysym((unsigned int)key_args->VirtualKey); - ke.physical_scancode = KeyMappingWindows::get_scansym((unsigned int)key_args->KeyStatus.ScanCode); + ke.physical_scancode = KeyMappingWindows::get_scansym((unsigned int)key_args->KeyStatus.ScanCode, key_args->KeyStatus.IsExtendedKey); ke.echo = (!p_pressed && !key_args->KeyStatus.IsKeyReleased) || (p_pressed && key_args->KeyStatus.WasKeyDown); } else {