Swallow shift keyboard event when dragging window (#1423)

This commit is contained in:
vldmr11080
2020-03-05 08:01:58 +01:00
committed by GitHub
parent 75ed3ce60c
commit 39cac396f5

View File

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