Skip to content

Commit

Permalink
Attempt to fix keyboard jog shortcut getting stuck
Browse files Browse the repository at this point in the history
  • Loading branch information
breiler committed Mar 14, 2024
1 parent 8f04b04 commit 04ace4d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,16 @@ public boolean dispatchKeyEvent(KeyEvent keyEvent) {
}

// On any key release we should abort a long pressed executor
if (keyEvent.getID() == KEY_RELEASED && executor.isLongPressed()) {
executor.release();
if (keyEvent.getID() == KEY_RELEASED) {
executor.keyReleased(keyEvent);
keyEvent.consume();
return false;
}

// Try to find an continuous action for the current keys
// Try to find a continuous action for the current keys
String keyAsString = getKeyAsString(keyEvent);
Optional<ActionReference> actionById = getContinuousActionByShortcut(keyAsString);
if (!actionById.isPresent()) {
if (actionById.isEmpty()) {
return false;
}

Expand Down

0 comments on commit 04ace4d

Please sign in to comment.