Skip to content

Commit

Permalink
Fix double signal callbacks on keyrepeat
Browse files Browse the repository at this point in the history
  • Loading branch information
oomek committed Aug 28, 2024
1 parent e65e01f commit ff91352
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -950,14 +950,9 @@ int main(int argc, char *argv[])
int t = move_timer.getElapsedTime().asMilliseconds();
if (( t > TRIG_CHANGE_MS ) && ( t - move_last_triggered > feSettings.selection_speed() ))
{
if (( move_triggered == FeInputMap::LAST_COMMAND )
|| feVM.script_handle_event( move_triggered ))
if (( move_triggered != FeInputMap::LAST_COMMAND ))
{
redraw=true;
move_triggered = FeInputMap::LAST_COMMAND;
}
else
{
move_last_triggered = t;
int step = 1;

Expand Down Expand Up @@ -1040,6 +1035,10 @@ int main(int argc, char *argv[])
redraw=true;
}
}
else
{
redraw=true;
}
}
}
else
Expand Down

0 comments on commit ff91352

Please sign in to comment.