Skip to content

Commit

Permalink
#86 WIP: Don't stop the key release event, just break the chord proce…
Browse files Browse the repository at this point in the history
…ssing
  • Loading branch information
o-sdn-o committed Nov 25, 2024
1 parent 2c322af commit 65c3de3
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/netxs/desktopio/input.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1177,9 +1177,6 @@ namespace netxs::input
si32 virtcod{};
si32 scancod{};
si32 keycode{};
ui64 vk_hash{};
ui64 sc_hash{};
ui64 ch_hash{};
text vkchord{};
text scchord{};
text chchord{};
Expand Down Expand Up @@ -1664,7 +1661,16 @@ namespace netxs::input
}
void set_handled(bool b = true)
{
handled = b;
if (keybd::keystat == input::key::released) // Don't stop the key release event, just break the chord processing.
{
keybd::vkchord.clear();
keybd::scchord.clear();
keybd::chchord.clear();
}
else
{
handled = b;
}
}
void set_hotkey_scheme(qiew scheme)
{
Expand Down

0 comments on commit 65c3de3

Please sign in to comment.