Happy New Year!
I’d like the character “[“ to be returned when I press F and G together.
It’s not really a job for layers, I think, as I’d also like H + J to output ], R + T to output {, Y + U to output }, and so on - I don’t need G to act as a modifier to any other keys.
I’m guessing expressions are the way to go.
Any chance someone could give me some pointers, perhaps just for one of those combinations?
Thanks
Realistically you’ll never press the two keys simultaneously so you have to ask yourself what you want to happen when you press F, then press G. Do you want F to register before “[”? Probably not. But when you press and release F, you do want F to register. Of course this means it cannot happen immediately after it’s pressed because HID Remapper doesn’t know if you’re going to press G or just release F. But should it wait until you release it to make the decision or wait 200ms or something? Also think about situation where the text you’re typing contains “rt”. Often you’ll press “T” before you release “R” when typing words like “part” or “smart”. How do you distinguish that from a chord?
Excellent and thought-provoking points, thanks!
Let me see….
F is pressed, start timer to count up to 100ms (I’m envisaging pressing the two keys with one finger, so 100ms should be plenty of time);
We wait for which of three events happens next:
a - F is released (within 100ms), return F (key-down, key-up)
b - G is pressed down (within 100ms) , return [ (key-down; key-up when F&G are released)
c - 100ms is reached, return F (key-down; key-up when F is released as usual)
Of course this needs to be duplicated for G being pressed first.
I’m now thinking about what happens if the key (or combo) is held down to the point where it would auto-repeat, but I can’t wrap my head round it.