Skip to content

Commit

Permalink
Fix timing on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpurcell committed Feb 28, 2024
1 parent e97a2b1 commit e934d77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/qvgraphicsview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ bool QVGraphicsView::event(QEvent *event)
else if (event->type() == QEvent::KeyRelease && turboNavMode.has_value())
{
const QKeyEvent *keyEvent = static_cast<QKeyEvent*>(event);
if (ActionManager::wouldTriggerAction(keyEvent, navPrevShortcuts) || ActionManager::wouldTriggerAction(keyEvent, navNextShortcuts))
if (!keyEvent->isAutoRepeat() &&
(ActionManager::wouldTriggerAction(keyEvent, navPrevShortcuts) || ActionManager::wouldTriggerAction(keyEvent, navNextShortcuts)))
{
cancelTurboNav();
}
Expand Down

0 comments on commit e934d77

Please sign in to comment.