When you press AltGr in Windows, VK_CONTROL and VK_MENU virtual keys are generated. The Linux virtual machines receive an extra Control_L key event which prevents them from recognizing the AltGr key combination.
This is not a VMware issue.
To workaround this issue, perform one of these options:
Add this line to /etc/vmware/config of the ESX host on which the virtual machine is running:
xkeymap.usekeycodeMap = true
In the Windows registry, remap the Right Alt (E0_38) to a different key. For example, to remap the Right Windows Key (E0_5C) to Right Alt (E0_38), add this to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout:
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,38,e0,5c,e0,00,00,00,00
Change the base Windows keymap to English US prior to starting the remote session.
Use this key combination for AltGr+<key>:
Press and hold AltGr.
Press and release Ctrl.
Note: The Ctrl key nullifies the Control_L event.
Press and release <key>.
Release AltGr.
Partager