Disable Win+Ctrl+Number feature for 0.16 release (#1689)

This commit is contained in:
vldmr11080
2020-03-25 18:32:33 +01:00
committed by GitHub
parent f8f7fe4f33
commit e85427f1da

View File

@@ -377,13 +377,14 @@ FancyZones::OnKeyDown(PKBDLLHOOKSTRUCT info) noexcept
bool const ctrl = GetAsyncKeyState(VK_CONTROL) & 0x8000; bool const ctrl = GetAsyncKeyState(VK_CONTROL) & 0x8000;
if (ctrl) if (ctrl)
{ {
if ((info->vkCode >= '0') && (info->vkCode <= '9')) // Temporarily disable Win+Ctrl+Number functionality
{ //if ((info->vkCode >= '0') && (info->vkCode <= '9'))
// Win+Ctrl+Number will cycle through ZoneSets //{
Trace::FancyZones::OnKeyDown(info->vkCode, win, ctrl, false /*inMoveSize*/); // // Win+Ctrl+Number will cycle through ZoneSets
CycleActiveZoneSet(info->vkCode); // Trace::FancyZones::OnKeyDown(info->vkCode, win, ctrl, false /*inMoveSize*/);
return true; // CycleActiveZoneSet(info->vkCode);
} // return true;
//}
} }
else if ((info->vkCode == VK_RIGHT) || (info->vkCode == VK_LEFT)) else if ((info->vkCode == VK_RIGHT) || (info->vkCode == VK_LEFT))
{ {
@@ -395,13 +396,14 @@ FancyZones::OnKeyDown(PKBDLLHOOKSTRUCT info) noexcept
} }
} }
} }
else if (m_inMoveSize && (info->vkCode >= '0') && (info->vkCode <= '9')) // Temporarily disable Win+Ctrl+Number functionality
{ //else if (m_inMoveSize && (info->vkCode >= '0') && (info->vkCode <= '9'))
// This allows you to cycle through ZoneSets while dragging a window //{
Trace::FancyZones::OnKeyDown(info->vkCode, win, false /*control*/, true /*inMoveSize*/); // // This allows you to cycle through ZoneSets while dragging a window
CycleActiveZoneSet(info->vkCode); // Trace::FancyZones::OnKeyDown(info->vkCode, win, false /*control*/, true /*inMoveSize*/);
return false; // CycleActiveZoneSet(info->vkCode);
} // return false;
//}
if (m_dragEnabled && shift) if (m_dragEnabled && shift)
{ {
return true; return true;