Swallow shift keyboard event when dragging window (#1362)

This commit is contained in:
vldmr11080 2020-02-25 21:03:14 +01:00 committed by GitHub
parent b1ac1859be
commit 2f9b753c5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -374,6 +374,10 @@ FancyZones::OnKeyDown(PKBDLLHOOKSTRUCT info) noexcept
CycleActiveZoneSet(info->vkCode);
return false;
}
if (m_dragEnabled && shift)
{
return true;
}
return false;
}
@ -654,6 +658,7 @@ void FancyZones::AddZoneWindow(HMONITOR monitor, PCWSTR deviceId) noexcept
{
m_zoneWindowMap[monitor] = std::move(zoneWindow);
}
if (newWorkArea)
{
RegisterNewWorkArea(m_currentVirtualDesktopId, monitor);