win32: ignore 0xFF virtual keyboard code

This commit is contained in:
Thomas Bernard 2018-09-18 12:44:48 +02:00
parent 60b2a7d67b
commit d0864d5fbf

View File

@ -173,6 +173,8 @@ static LRESULT CALLBACK Win32_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LP
case VK_LWIN: case VK_LWIN:
case VK_RWIN: case VK_RWIN:
case VK_NUMLOCK: case VK_NUMLOCK:
case 0xff: // ignore 0xff which is invalid but returned with some specific keys
// such as laptop Fn+something combinaisons
break; break;
default: default:
Key = wParam|Get_Key_modifiers(); Key = wParam|Get_Key_modifiers();