mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
Fix remapping issues to Home/PgUp and other keys which are also present on NumPad (#4398)
* Added extended key flag to more keys * Add test for extended key flag * Move shlwapi.lib reference * Added shcore ref * Fixed pipeline incompatibility * Fixed lib declaration in common * Fixed formatting * Remove unused statements * removed another statement
This commit is contained in:
@@ -75,6 +75,17 @@ namespace KeyboardManagerHelper
|
||||
case VK_NUMLOCK:
|
||||
case VK_SNAPSHOT:
|
||||
case VK_CANCEL:
|
||||
// If the extended flag is not set for the following keys, their NumPad versions are sent. This causes weird behavior when NumLock is on (more information at https://github.com/microsoft/PowerToys/issues/3478)
|
||||
case VK_INSERT:
|
||||
case VK_HOME:
|
||||
case VK_PRIOR:
|
||||
case VK_DELETE:
|
||||
case VK_END:
|
||||
case VK_NEXT:
|
||||
case VK_LEFT:
|
||||
case VK_DOWN:
|
||||
case VK_RIGHT:
|
||||
case VK_UP:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user