Skip to content

Commit

Permalink
Swallow shift keyboard event when dragging window (#1362)
Browse files Browse the repository at this point in the history
  • Loading branch information
vldmr11080 authored Feb 25, 2020
1 parent b1ac185 commit 2f9b753
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modules/fancyzones/lib/FancyZones.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,10 @@ FancyZones::OnKeyDown(PKBDLLHOOKSTRUCT info) noexcept
CycleActiveZoneSet(info->vkCode);
return false;
}
if (m_dragEnabled && shift)
{
return true;
}
return false;
}

Expand Down Expand Up @@ -654,6 +658,7 @@ void FancyZones::AddZoneWindow(HMONITOR monitor, PCWSTR deviceId) noexcept
{
m_zoneWindowMap[monitor] = std::move(zoneWindow);
}

if (newWorkArea)
{
RegisterNewWorkArea(m_currentVirtualDesktopId, monitor);
Expand Down

0 comments on commit 2f9b753

Please sign in to comment.