Using CapsLock as an extension key while keeping it's original behavior #308
Closed
WagnerGFX
started this conversation in
Show and tell
Replies: 1 comment
-
|
Thank you very much! Very nice. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When using CapsLock to create an extension layer some may move it's original behavior to CTRL+CapsLock, ESC+CapsLock or move the key away entirely, but I am used to how CapsLock works so I wanted it to still behave normally when I pressed it alone.
This is a small snipped I created that makes a key's release state behave differently when used alone and when other keys were used before it's release.
I know there is another way to do something similar, but this is the most flexible way as the others I tried couldn't work with virtual keys.
Although each individual functionality is documented, I struggled a bit to gather everything together and create the code below, so I hope this helps anyone trying to create something similar.
I would recommend adding the snippet below to the wiki, or a simpler version of it.
Beta Was this translation helpful? Give feedback.
All reactions