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.
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
Added keycodes for swapping and unswapping the Control and OS keys #6110
Added keycodes for swapping and unswapping the Control and OS keys #6110
Changes from all commits
b9b30e9
86f305f
3e3fccf
45bf472
fbe3fd6
7521bb2
8c8e0ef
f066d9d
63cb595
4272f13
d51c6e0
4bd2292
58e6da1
02ce4af
5c83048
f1a0d52
1ab2d25
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
it feels like these two lines should be a more descriptive macro, like
CANCEL_AND_SET_MOD(MOD_LCTL, MOD_LGUI)
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.
do you mean for the whole function?
If so, the function is from tmk originally, and is used extensively, IIRC.
Otherwise, we don't actually have a function to modify mods in a variable. So, something would need to be added, to do so.
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.
nope, just the inner block. It would be clearer what's going on.
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.
Okay. unfortunately, no function exists for that right now. But it could be useful.
For now, though, I don't think this is a change that needs to be added here. It's something that would be better in a more general-ish overhaul.
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.
you can assign these at the same time:
keymap_config.swap_lctl_lgui = keymap_config.swap_rctl_rgui = true;
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.
this could lead to odd behavior. What if lctl_lgui is true and rctl_rgui is false. Is that intended?
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.
Is the same as ALT-GUI. But I suspect that no, it wasn't intended.
However, I don't feel that this is something that needs to be addressed here.