Browse Source

Fixed Win+V handling (pasting from clipboard history) on Windows (thanks @ocornut!)

Fixes https://github.com/libsdl-org/SDL/issues/9613

(cherry picked from commit 33af02ae6817f89b0a5dc7a785583d4b9bf70e5b)
Sam Lantinga 1 year ago
parent
commit
b5da8ad00d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/video/windows/SDL_windowsevents.c

+ 4 - 0
src/video/windows/SDL_windowsevents.c

@@ -128,6 +128,10 @@ static SDL_Scancode VKeytoScancodeFallback(WPARAM vkey)
         return SDL_SCANCODE_RIGHT;
     case VK_DOWN:
         return SDL_SCANCODE_DOWN;
+    case VK_CONTROL:
+        return SDL_SCANCODE_LCTRL;
+    case VK_V:
+        return SDL_SCANCODE_V;
 
     default:
         return SDL_SCANCODE_UNKNOWN;