mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
[FancyZones] Improve code quality (part 1: moved utils) (#23028)
This commit is contained in:
@@ -273,4 +273,13 @@ namespace FancyZonesUtils
|
||||
|
||||
return windowRect;
|
||||
}
|
||||
|
||||
void SwallowKey(const WORD key) noexcept
|
||||
{
|
||||
INPUT inputKey[1] = {};
|
||||
inputKey[0].type = INPUT_KEYBOARD;
|
||||
inputKey[0].ki.wVk = key;
|
||||
inputKey[0].ki.dwFlags = KEYEVENTF_KEYUP;
|
||||
SendInput(1, inputKey, sizeof(INPUT));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user