Using both alt flags on one key


(Michael Richters) #1

Does anyone know of a case where it’s useful to send both left and right alt keycodes simultaneously? I’m curious because it looks like QMK and Kaleidoscope both use five flag bits for adding modifiers to keyboard keycodes, but while Kaleidoscope has four left mods and one for right alt, QMK uses four bits to encode the different modifiers and the fifth bit to indicate if the modifiers will be treated as right mods instead of left mods. This seems pretty much equivalent in almost all cases, unless there’s something that uses a combination of the two alt keys (i.e. Alt + AltGr + X). I’m just curious, and wondering if there is anything that would make use of that combination.


IIRC, a small handful of games make the distinction.

Also, it would be worthwhile to check with the Plover community because steno might make use of a distinction between those keys.

(Michael Richters) #3

A distinction between the two alt keys is a prerequisite for what I’m getting at (and certainly exists in many cases, even system-wide), but the core of my question is, “Can anyone think of a reason to have a keymap entry that uses both alt modifier flags (on the same key)?”

Plover is another good suggestion; I hadn’t thought of that. However, since the whole point of a stenograph is to use few keys and rapid chording, I doubt very much that it makes sense to have dedicated special keys with modifier combos.


Ah, okay.

In that case, yes I can think of a valid use for a Alt+AltGr+x combo.


  1. The Alt layer can be thought of as a second Shift layer.
  2. The AltGr layer is typically used for glyphs which are not used in the native language of the user.
  3. A Tolkien lore historian whose native language is English, but who needs to type Tengwar and Cirth.

In the above case, Tengwar goes on the AltGr layer, the AltGr+Shift layer is used for the less common Tengwar glyphs, and Cirth goes on the AltGr+Alt layer.

From a far more practical standpoint, I have used Ukelele to do the same thing for my laptop (English on the base and Shift layers, Greek on the AltGr and AltGr+Shift layers, culminating in esoteric Unicode mathematical glyphs on the AltGr+Alt layer).

(Michael Richters) #5

Thanks for the reply; that’s a bit of a custom configuration corner case, but still a possible reason to prefer the Kaleidoscope system to QMK’s mod flags.

As a followup question, do you see it as useful to be able to have an in-firmware layer where all (or nearly all) the keys have the Alt + AltGr modifier flags applied (so you could toggle a layer on and not need to hold modifier keys)? Or have you already done so (I’m not sure from reading your message)?


My above example was from before I discovered Kaleidoscope and QMK, so my usage of “layer” in said above example is Ukelele’s concept of a layer (have to hold down modifier key(s) to access that layer).

Using modifier keys to toggle a layer on/off would be far more user friendly.