Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to fix keyboard jog shortcut getting stuck #2485

Merged
merged 1 commit into from
Mar 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading