Relative to the other three modifiers, it is very common for the left and right alt keys to have different functions in an OS. In particular, with non-US keyboard layouts it’s very common for right alt to be AltGr, which causes other keys to produce accented characters (among other things).
Thanks for your reply. In XKB, in fact RAlt is the default third level modifier. But so is RCtrl the default fifth level modifier. Is there a way to specifically select this as available for RAlt?
I mean, the availability of the RALT separate flag allows me to tell Kaleidoscope (by mapping a key to RALT(Key_X)) to imitate a RAlt + X keystroke which my OS can interpret as the third shift level on the key X, but similarly how to imitate a RCtrl + X keystroke which my OS can interpret to request the fifth shift level?
It’s perhaps worth noting that it’s possible to use the five modifier flag bits to get access to all eight modifier keycodes. QMK does this, in fact, by using four of the bits for control, shift, alt, and gui, and the fifth bit to indicate which side (right or left) modifiers are used. This gives access to all the right-side modifiers as well as the left-side ones, but it’s not possible to combine left-side modifiers with right-side ones.
It’s not clear to me which way is better – the trade-offs don’t seem to be huge either way.