Topic AltGr

We have two new locations for Keyman technical support:

The Tavultesoft Forums are now read only.


# AltGr   2016-02-08 05:13:04.760
br Julian Griffin OSL
As noted in another post the 'Alt' key does not function in the test mode, but does work when the keyboard definition is installed.

   However, the 'AltGr' key does not function in either in Test or Install. Is this related to the 'Alt' problem? If not, how do I turn it on?

   I tried distinguishing between the Left/Right of the 'Alt' & 'Ctrl' keys, but to no effect.

Regards
Julian Griffin
# RE: AltGr   2016-02-09 06:17:23.267
br Julian Griffin OSL
HI.

   I now see my misunderstanding re: “distinguishing between the Left/Right of the 'Alt' & 'Ctrl' keys”.

   I had thought it was a flag that changed how the Keyman Engine functioned. I now see that it is the name of the virtual keys that are effected by this flag.

   So I started to explore different combination of left & right, Ctrl & Alt keys. I found that there are four possible distinct combinations (at least of my system):
:
Left CTRL + Left ALT
Left CTRL + Right ALT
Right CTRL + Left ALT
Right CTRL + Right ALT

   As far as I can see, each of the above combinations produces distinct Contexts. But I feel it would be confusing if each of the combinations was mapped to different outputs. Which would mean creating each AltGr Rule four times to cover the four possible combinations.

   So to my question, is there a way to use the Any() command so that all four combinations produce the same output?

Regards
Julian Griffin
# RE: AltGr   2016-02-09 06:26:46.680
Marc Durdin
Tavultesoft Staff
I'm glad you were able resolve the issue of AltGr with your keyboard.

If you want to cover all four of those options, then it's best to use the generic [CTRL ALT K_xxx] approach rather than using left or right ctrl/alt keys.

It gets a little murky, however, as Windows treats the AltGr key as generating a Left Ctrl + Right Alt internally. This is then mapped differently than Left Ctrl + Left Alt, or Right Ctrl + Right Alt (there is usually no special attention paid to Right Ctrl + Left Alt). The Left Ctrl + Left Alt combination is typically reserved for command shortcuts; the AltGr (or Left Ctrl + Right Alt) is used for characters.

In Keyman, the approach we recommend is to use just + [RALT K_xxx] for rules, as this then does not block the use of Ctrl+Alt for commands, and then allow the user to select the option in Keyman Configuration titled "Simulate AltGr with Ctrl+Alt" if they do want to use Ctrl+Alt instead of AltGr.