-
Notifications
You must be signed in to change notification settings - Fork 34
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
[BUG] InputMapper fail to map to correct action #144
Comments
mayanksuman
added a commit
to mayanksuman/Projecteur
that referenced
this issue
Aug 9, 2021
In case, when two different input sequence of same length and same end KeyEvent are defined then InputMapper fails to map to correct action. This commit fixes the issue with InputMapper. The correct action is decided on the basis of all keys pressed (instead of last key pressed in earlier version of code).
mayanksuman
added a commit
to mayanksuman/Projecteur
that referenced
this issue
Aug 9, 2021
In case, when two different input sequence of same length and same end KeyEvent are defined then InputMapper fails to map to correct action. This commit fixes the issue with InputMapper. The correct action is decided on the basis of all keys pressed (instead of last key pressed in earlier version of code).
Thank you mayank - good find - the way it was implemented by me with a map was producing the wrong output - basically overwriting any Action that was already set. This will be fixed with #146 . |
mayanksuman
pushed a commit
to mayanksuman/Projecteur
that referenced
this issue
Aug 10, 2021
mayanksuman
pushed a commit
to mayanksuman/Projecteur
that referenced
this issue
Aug 10, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When two different input sequences of same length and same end KeyEvent are defined then InputMapper fails to map to correct action.
To Reproduce
Define two input sequences as shown in this figure.
These two input sequences have two keyEvents with same last KeyEvent. First one is double click on Spotlight device and other one is Next Button Press followed by Click on Spotlight device.
Now try to press these two input sequences one by one, you will not be able to get right action in both cases.
For me, I always get 'b' Key Sequence.
Expected behavior
The InputMapper should map to correct action.
The text was updated successfully, but these errors were encountered: