From 9a7346b10ea2bc7ba2cb17c66631b1a6cf8b474e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 4 May 2026 22:14:22 +0200 Subject: [PATCH] Fix bug with key event filtering (when text input enabled) for UWP. Fixes #21635 --- UI/NativeApp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index 41f7a7c24a..b1dbd78c63 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -1292,7 +1292,7 @@ bool NativeKey(const KeyInput &key) { #if PPSSPP_PLATFORM(UWP) // Ignore if key sent from OnKeyDown/OnKeyUp/XInput while text edit active // it's already handled by `OnCharacterReceived` - if (IgnoreInput(key.keyCode) && !(key.flags & KeyInputFlags::CHAR)) { + if (key.deviceId == DEVICE_ID_KEYBOARD && IgnoreInput(key.keyCode) && !(key.flags & KeyInputFlags::CHAR)) { return false; } #endif