Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LazyPanda07 committed Nov 1, 2021
1 parent bb0c055 commit 80873d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion GUIFramework/src/GUIFramework.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ namespace gui_framework
void GUIFramework::processHotkeys() const
{
static set<const set<uint32_t>*> possibleHotkeys;
static constexpr int keyDownBit = 1 << 16;

possibleHotkeys.clear();

Expand All @@ -366,7 +367,7 @@ namespace gui_framework
{
for (const auto& j : i)
{
if (!GetAsyncKeyState(j))
if (!(GetAsyncKeyState(j) & keyDownBit))
{
possibleHotkeys.erase(&i);

Expand Down

0 comments on commit 80873d1

Please sign in to comment.