-
Notifications
You must be signed in to change notification settings - Fork 10
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
Check if last pressed key is part of hotkey combination #120
Merged
maxbergmark
merged 15 commits into
gaucho-labs:main
from
maxbergmark:bugfix/prevent-multiple-key-events
Sep 3, 2024
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
2a763d2
First attempt at fixing #119
maxbergmark c226f11
Reset last_pressed on key up + refactor
maxbergmark ebff790
Refactor key handling logic
maxbergmark ff2f084
Handle conflict with #127
maxbergmark dee6536
Merge branch 'main' into bugfix/prevent-multiple-key-events
maxbergmark 968df44
Temporary debug message for last key match
maxbergmark 4b9aab3
Another temporary debug message
maxbergmark 0f59d22
Remove temporary logs + refactor
maxbergmark a8fef7b
Merge branch 'main' into bugfix/prevent-multiple-key-events
friendlymatthew 1afdfb5
Merge branch 'main' into bugfix/prevent-multiple-key-events
friendlymatthew f1e5410
Add feature for using event key
maxbergmark f721c9b
Update README with feature flag description
maxbergmark c7104e0
Revert "Update README with feature flag description"
maxbergmark f3db651
Revert "Add feature for using event key"
maxbergmark 2efcfc5
Merge branch 'main' into bugfix/prevent-multiple-key-events
friendlymatthew File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@friendlymatthew When I merged in the changes from #121, I noticed that this is the only place where
event.key()
is referenced. So if you've come up with a feature flag for switching betweenevent.code()
andevent.key()
, I'll add it here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@maxbergmark thanks for flagging! Would you be interested in attacking #131? Work is taking up all my time, so I'm afraid I won't have time to get this done ASAP.
On another note, would you be interested in joining as a maintainer? You'd be requested for reviews and help steer this project. Let me know! :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@friendlymatthew I made an attempt at solving #131. I added a feature called
event_key
and just used it in theclean_key
function. That should do the job, but I'd be happy to fix any issues that I might have overlooked (maybe the spacebar handling?). The name of the feature flag was just something I made up, I'll change it if you have a better suggestion.I'm honored to be invited as a maintainer of this repo, but right now I can't find the time that it would require. I think you're doing great work, and I'll happily keep using the repo, and contribute in discussions and issues when I have some time left over.