Skip to content

Commit

Permalink
fix event virtual when coming from outside
Browse files Browse the repository at this point in the history
  • Loading branch information
scheffle committed Apr 22, 2024
1 parent f507dfb commit aa3378d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vstgui/lib/cframe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,8 @@ void CFrame::dispatchEventToChildren (Event& event)
//-----------------------------------------------------------------------------
void CFrame::dispatchKeyboardEvent (KeyboardEvent& event)
{
if (static_cast<uint32_t> (event.virt) > static_cast<uint32_t> (VirtualKey::Equals))
event.virt = VirtualKey::None;
dispatchKeyboardEventToHooks (event);
if (event.consumed)
return;
Expand Down

0 comments on commit aa3378d

Please sign in to comment.