-
-
Notifications
You must be signed in to change notification settings - Fork 40.7k
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
Conversation
Key codes to swap and unswap the control and windows/cmd keys
Renamed swap/unswap lctl and lgui key codes, added key codes to swap/unswap rctl and rgui, and moved new bool inside keycode_config.h struct to the end
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.
I see that you expanded the keycode_config
function to handle this functionality.
However, could you make sure that the appropriate handling is added to mod_config
as well.
In addition to the |
@drashna sure will add both of those |
Any updates on this? |
@drashna Sorry I’ve been pretty busy. Will have time to work on it more tonight 👍 |
Okay, just wanted to follow up on this. :) |
6771389
to
45bf472
Compare
I don't know why it's not showing in the webui here, but it looks like the conflict is in the enum for the keycodes. Right before You may need to update/rebase your branch to fix the merge conflict. |
Co-Authored-By: noroadsleft <[email protected]>
Co-Authored-By: noroadsleft <[email protected]>
Co-Authored-By: noroadsleft <[email protected]>
Co-Authored-By: noroadsleft <[email protected]>
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.
Looks good to me.
@drashna 😍 |
To whom it may concern; Long time user, first time poster. Recently merged master onto my repo and noticed the my LCTRL stopped working. After some digging, noticed this code was added . I don't have bootmagic enabled and yet this affecting my LCTRL key. Current workaround is comment out the Thanks |
@fauxpark - Thank you for the quick response! Reseting the EEPROM did the trick! |
…mk#6110) * Add MAGIC_SWAP_CONTROL_LGUI and MAGIC_UNSWAP_CONTROL_LGUI keycodes Key codes to swap and unswap the control and windows/cmd keys * Fix issues with pull request qmk#6110 Renamed swap/unswap lctl and lgui key codes, added key codes to swap/unswap rctl and rgui, and moved new bool inside keycode_config.h struct to the end * Move new keycodes to the end of the enum (qmk#6110) * add cases for swapped control and OS keys to mod_config (qmk#6110) * Add new keycodes to feature_bootmagic.md (qmk#6110) * Add R+L swap codes to keep in parity with AG_* codes * Extend Magic range check to include new magic codes * Update audio docs * Combine 2 byte ranges into 1 word for EECONFG Fix names for Keymap config EEPROM * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]> * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]> * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]> * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]>
…mk#6110) * Add MAGIC_SWAP_CONTROL_LGUI and MAGIC_UNSWAP_CONTROL_LGUI keycodes Key codes to swap and unswap the control and windows/cmd keys * Fix issues with pull request qmk#6110 Renamed swap/unswap lctl and lgui key codes, added key codes to swap/unswap rctl and rgui, and moved new bool inside keycode_config.h struct to the end * Move new keycodes to the end of the enum (qmk#6110) * add cases for swapped control and OS keys to mod_config (qmk#6110) * Add new keycodes to feature_bootmagic.md (qmk#6110) * Add R+L swap codes to keep in parity with AG_* codes * Extend Magic range check to include new magic codes * Update audio docs * Combine 2 byte ranges into 1 word for EECONFG Fix names for Keymap config EEPROM * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]> * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]> * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]> * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]>
…mk#6110) * Add MAGIC_SWAP_CONTROL_LGUI and MAGIC_UNSWAP_CONTROL_LGUI keycodes Key codes to swap and unswap the control and windows/cmd keys * Fix issues with pull request qmk#6110 Renamed swap/unswap lctl and lgui key codes, added key codes to swap/unswap rctl and rgui, and moved new bool inside keycode_config.h struct to the end * Move new keycodes to the end of the enum (qmk#6110) * add cases for swapped control and OS keys to mod_config (qmk#6110) * Add new keycodes to feature_bootmagic.md (qmk#6110) * Add R+L swap codes to keep in parity with AG_* codes * Extend Magic range check to include new magic codes * Update audio docs * Combine 2 byte ranges into 1 word for EECONFG Fix names for Keymap config EEPROM * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]> * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]> * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]> * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]>
…mk#6110) * Add MAGIC_SWAP_CONTROL_LGUI and MAGIC_UNSWAP_CONTROL_LGUI keycodes Key codes to swap and unswap the control and windows/cmd keys * Fix issues with pull request qmk#6110 Renamed swap/unswap lctl and lgui key codes, added key codes to swap/unswap rctl and rgui, and moved new bool inside keycode_config.h struct to the end * Move new keycodes to the end of the enum (qmk#6110) * add cases for swapped control and OS keys to mod_config (qmk#6110) * Add new keycodes to feature_bootmagic.md (qmk#6110) * Add R+L swap codes to keep in parity with AG_* codes * Extend Magic range check to include new magic codes * Update audio docs * Combine 2 byte ranges into 1 word for EECONFG Fix names for Keymap config EEPROM * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]> * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]> * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]> * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]>
…mk#6110) * Add MAGIC_SWAP_CONTROL_LGUI and MAGIC_UNSWAP_CONTROL_LGUI keycodes Key codes to swap and unswap the control and windows/cmd keys * Fix issues with pull request qmk#6110 Renamed swap/unswap lctl and lgui key codes, added key codes to swap/unswap rctl and rgui, and moved new bool inside keycode_config.h struct to the end * Move new keycodes to the end of the enum (qmk#6110) * add cases for swapped control and OS keys to mod_config (qmk#6110) * Add new keycodes to feature_bootmagic.md (qmk#6110) * Add R+L swap codes to keep in parity with AG_* codes * Extend Magic range check to include new magic codes * Update audio docs * Combine 2 byte ranges into 1 word for EECONFG Fix names for Keymap config EEPROM * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]> * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]> * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]> * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]>
…mk#6110) * Add MAGIC_SWAP_CONTROL_LGUI and MAGIC_UNSWAP_CONTROL_LGUI keycodes Key codes to swap and unswap the control and windows/cmd keys * Fix issues with pull request qmk#6110 Renamed swap/unswap lctl and lgui key codes, added key codes to swap/unswap rctl and rgui, and moved new bool inside keycode_config.h struct to the end * Move new keycodes to the end of the enum (qmk#6110) * add cases for swapped control and OS keys to mod_config (qmk#6110) * Add new keycodes to feature_bootmagic.md (qmk#6110) * Add R+L swap codes to keep in parity with AG_* codes * Extend Magic range check to include new magic codes * Update audio docs * Combine 2 byte ranges into 1 word for EECONFG Fix names for Keymap config EEPROM * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]> * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]> * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]> * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]>
…mk#6110) * Add MAGIC_SWAP_CONTROL_LGUI and MAGIC_UNSWAP_CONTROL_LGUI keycodes Key codes to swap and unswap the control and windows/cmd keys * Fix issues with pull request qmk#6110 Renamed swap/unswap lctl and lgui key codes, added key codes to swap/unswap rctl and rgui, and moved new bool inside keycode_config.h struct to the end * Move new keycodes to the end of the enum (qmk#6110) * add cases for swapped control and OS keys to mod_config (qmk#6110) * Add new keycodes to feature_bootmagic.md (qmk#6110) * Add R+L swap codes to keep in parity with AG_* codes * Extend Magic range check to include new magic codes * Update audio docs * Combine 2 byte ranges into 1 word for EECONFG Fix names for Keymap config EEPROM * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]> * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]> * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]> * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]>
…mk#6110) * Add MAGIC_SWAP_CONTROL_LGUI and MAGIC_UNSWAP_CONTROL_LGUI keycodes Key codes to swap and unswap the control and windows/cmd keys * Fix issues with pull request qmk#6110 Renamed swap/unswap lctl and lgui key codes, added key codes to swap/unswap rctl and rgui, and moved new bool inside keycode_config.h struct to the end * Move new keycodes to the end of the enum (qmk#6110) * add cases for swapped control and OS keys to mod_config (qmk#6110) * Add new keycodes to feature_bootmagic.md (qmk#6110) * Add R+L swap codes to keep in parity with AG_* codes * Extend Magic range check to include new magic codes * Update audio docs * Combine 2 byte ranges into 1 word for EECONFG Fix names for Keymap config EEPROM * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]> * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]> * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]> * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <[email protected]>
Description
Key codes to swap and unswap the control and windows/cmd keys.
I was looking for this feature to have the ctrl key in the caps lock spot in my HHKB layout for when I'm on Windows, and to have the CMD key there when I moved to MacOS. I saw there are keycodes to swap some of the other keys so I adapted the logic to do the same thing with the Control and OS keys.
Types of Changes
Issues Fixed or Closed by This PR
Checklist