Skip to content

Commit

Permalink
ToKeyAction, ToMouseButtonAction: fixed action not getting handled wh…
Browse files Browse the repository at this point in the history
…en configured as SINGLE_ON_RELEASE

IActivatableAction.init() default method was no longer getting called,
after the introduction of the MinActivationIntervalAction super class,
which defines its own init() method
  • Loading branch information
bwRavencl committed Oct 13, 2023
1 parent f1d6e4a commit 60d6d66
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ void handleAction(boolean hot, final Input input) {
}
}

@Override
public void init(final Input input) {
super.init(input);
IActivatableAction.super.init(input);
}

@Override
public boolean isLongPress() {
return longPress;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ void handleAction(boolean hot, final Input input) {
}
}

@Override
public void init(final Input input) {
super.init(input);
IActivatableAction.super.init(input);
}

@Override
public boolean isLongPress() {
return longPress;
Expand Down

0 comments on commit 60d6d66

Please sign in to comment.