diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2022-08-13 00:55:28 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2022-08-13 00:55:28 +0300 |
commit | b5e92c3dfe70f94556719594c6c1b457cda59768 (patch) | |
tree | 264dd256d8cb98d372a5988167d19629545d122b | |
parent | dcfe7f795ce12c3291e0bedb70e8e9e460d127a3 (diff) | |
parent | ffd4f4a486c86fc69c14122372fef05263b572c3 (diff) |
Merge branch 'blender-v3.3-release'
-rw-r--r-- | intern/ghost/intern/GHOST_SystemWin32.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp index 5a930209376..7c07ea6cd64 100644 --- a/intern/ghost/intern/GHOST_SystemWin32.cpp +++ b/intern/ghost/intern/GHOST_SystemWin32.cpp @@ -638,6 +638,11 @@ GHOST_TKey GHOST_SystemWin32::hardKey(RAWINPUT const &raw, GHOST_TKey GHOST_SystemWin32::processSpecialKey(short vKey, short scanCode) const { GHOST_TKey key = GHOST_kKeyUnknown; + if (vKey == 0xFF) { + /* 0xFF is not a valid virtual key code. */ + return key; + } + char ch = (char)MapVirtualKeyA(vKey, MAPVK_VK_TO_CHAR); switch (ch) { case u'\"': |