fix(whkd): bind rwin by default when binding win#82
Open
akozlev wants to merge 2 commits intoLGUG2Z:masterfrom
Open
fix(whkd): bind rwin by default when binding win#82akozlev wants to merge 2 commits intoLGUG2Z:masterfrom
akozlev wants to merge 2 commits intoLGUG2Z:masterfrom
Conversation
Author
|
Hey @LGUG2Z, Thanks. |
Owner
I think the only change I'd like to see before adding this is that we ensure that binds to |
This commit ensures that `VKey::RWIN` is registered alongside with `VKey::LWIN` when specifying a `win` as a modifier. This is required because `win-hotkeys` doesn't handle lwin and rwin the same way that it handles shift, alt and ctrl.
17957a9 to
ee97062
Compare
ee97062 to
c26a89f
Compare
Author
|
Thank you for the feedback, @LGUG2Z. I've updated it to check the initial bindings list for ones specified with |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Thank you for you work on whkd and komorebi.
I was experiencing an issue with binding the Windows key. I was able to use the left windows key to trigger a hotkey but not the right one. Let me know if this is the intended behavior. Otherwise, please read my reasoning below about why I created this PR.
The user might expect that a hotkey like
win + kwould trigger regardless of which windows key is pressed.This pull request ensures that
VKey::RWINis registered alongside withVKey::LWINwhen specifying awinas a modifier. [1]This is required because
win-hotkeysdoesn't handle lwin and rwin the same way that it handles shift, alt and ctrl.Things to consider:
winmodifier it will not registerrwinby default.win + kandrwin + kit might result in a conflicting binding because of the default.Let me know if there is anything you would like me to modify.
[1] https://github.com/iholston/win-hotkeys/blob/b967bca6559a1b34ac09425389be46117554be2a/src/keys.rs#L547