case MACRO_OSM_LEVEL4:
if (keyToggledOn(keyState))
{
OneShot.inject(OSM(RightAlt), keyState);
OneShot.inject(OSM(LeftShift), keyState);
}
break;
On my Kubuntu system RightAlt + Shift selects the fourth shift level of my a key in the active XKB keyboard layout. So I have made a level 4 key that activates them together.
However triggering this macro once causes the two modifiers to go into sticky mode which is not what is desired. Tapping the level 3 and shift modifiers in sequence doesn’t go into sticky mode.
It is desirable that my virtual Level4 key works like any other OSM key: single tap for one time behaviour and double tap for sticky with third tap for release, but I’m not sure if this is possible within the current framework…
Can you open a GitHub issue about this? I don’t have time to debug it right now, but I can assign the GitHub issue to myself, and I’ll remember to have a look at it the next time I have some keyboard-time.