Fix certain characters being recognized as special keys in Windows when using the us international layout

This commit is contained in:
Eric Rybicki
2020-05-18 14:47:54 +02:00
parent d4599fff68
commit e460456e60
3 changed files with 16 additions and 1 deletions

View File

@ -411,3 +411,16 @@ unsigned int KeyMappingWindows::get_scansym(unsigned int p_code, bool p_extended
return keycode;
}
bool KeyMappingWindows::is_extended_key(unsigned int p_code) {
return p_code == VK_INSERT ||
p_code == VK_DELETE ||
p_code == VK_HOME ||
p_code == VK_END ||
p_code == VK_PRIOR ||
p_code == VK_NEXT ||
p_code == VK_LEFT ||
p_code == VK_UP ||
p_code == VK_RIGHT ||
p_code == VK_DOWN;
}