Hey everyone,
I’m using a US-Alt keyboard layout, and I’m trying to set up my UHK to emulate a dead key for accents. Basically, I want my Shift key to work in two ways:
- Quick Tap: Should activate an AltGr sticky effect, keeping AltGr active until the next key press.
- Held Press: Just works like a regular Shift key.
Here’s what I have so far:
holdKey iLS // Hold Shift key normally
ifNotPlaytime 1000 { // Quick press and release check
oneShot holdLayer fn2 // Switch to fn2 for next keypress
break // Exit the macro
}
delayUntilRelease // Wait until the Shift key is released
releaseKey iLS // Normal Shift function on hold
I also set up a fn2 layer that’s like the base layer, but every keypress acts as if AltGr is held down. It’s mostly working great, but sometimes when I release Shift and then press another key quickly, it triggers the held behavior instead of just tapping.
I’m looking for any tips on how to tweak this or maybe a different approach to handle this scenario. Anything that might make this setup more reliable would be super helpful.
Thanks a bunch!