mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 18:26:39 +02:00
[MWB]Remove shortcut for deprecated VKMap functionality(#26484)
* Comment out code hooking Ctrl+Shift+Alt+K to toggle unused UseVKMap setting * [MWB] Remove UseVKMap and VKMap completely --------- Co-authored-by: David Taylor <davidt@yadt.co.uk>
This commit is contained in:
@@ -356,15 +356,7 @@ namespace MouseWithoutBorders.Class
|
||||
|
||||
if (Common.DesMachineID == ID.NONE || Common.DesMachineID == ID.ALL || Common.DesMachineID == Common.MachineID)
|
||||
{
|
||||
if (nCode >= 0 && Setting.Values.UseVKMap && Setting.Values.VKMap != null && Setting.Values.VKMap.ContainsKey(hookCallbackKeybdData.wVk) && !CtrlDown)
|
||||
{
|
||||
InputSimulation.SendKey(hookCallbackKeybdData);
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return NativeMethods.CallNextHookEx(hKeyboardHook, nCode, wParam, lParam);
|
||||
}
|
||||
return NativeMethods.CallNextHookEx(hKeyboardHook, nCode, wParam, lParam);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -645,14 +637,6 @@ namespace MouseWithoutBorders.Class
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (shiftDown && Setting.Values.VKMap != null && vkCode == (Setting.Values.VKMap.ContainsKey(0) ? (int)Setting.Values.VKMap[0] : 'K'))
|
||||
{
|
||||
if (Common.DesMachineID == Common.MachineID || Common.DesMachineID == ID.ALL)
|
||||
{
|
||||
Setting.Values.UseVKMap = !Setting.Values.UseVKMap;
|
||||
return Common.DesMachineID == ID.ALL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user