Alt Gr key (right alt) randomly stops working when working on Microsoft RDP client and behaves as left alt instead.

I am on a Macbook Air M1, with a PC keyboard, using an AzertyPC layout in MacOS.

When this occurs, switching the RDP keyboard mode to Unicode will fix the problem but it will create other issues (like shift+leftAlt+key will stop working in visual studio inside the RDP)

This leads to three questions:

  1. There is a workaround on windows for this issue which is to press ALT+Enter on a RDP window. Is there an explanation on what it does? Is there a smilar workaround on MacOS?
  2. Why switching to Unicode makes Alt Gr work properly?
  3. Why in Unicode Shift+LeftAlt+Key works differently?
  • 1
    Mac has no idea what alt/gr is [nor does it by default differentiate between the left & right Ctrl keys at all]. Try the two distinct keys that make up alt/gr, Ctrl + Opt[alt]. – Tetsujin Mar 29 at 15:34
  • The keyboard has a PC layout and macOS keyboard is set to Azerty PC. Sometimes it works fine, sometimes it stops working. There is a workaround which is press alt+enter but it does not seem to work on mac. Using Ctrl+Opt does work but it's annoying – sofsntp Mar 29 at 15:38
  • 1
    The Mac simply doesn't respond to an alt/gr key. It's entirely a 1980s unix construct, which Windows adopted & translated into ctrl+alt. It has no meaning on Mac, whatever your keyboard layout is set to. The Mac will register that key as just alt/opt whether you're set to a Mac or PC keyboard layout. I just tested. – Tetsujin Mar 29 at 15:44
  • today when I restarted the RDP it started working again. Clearly macOS is able to differentiate Alt and AltGr when sending the keystroke to MS RDP. I am not sure what you're trying to demonstrate but this is not really helpful. – sofsntp Mar 30 at 7:54
  • 1
    One thing worth a shot is to get the RDC beta from install.appcenter.ms/orgs/rdmacios-k2vy/apps/… - [this is the legitimate MS download site] It includes a bug reporting framework & I've known MS get back within a day to request further info on a report, so they are definitely paying attention. – Tetsujin Apr 1 at 9:35

You must log in to answer this question.

Browse other questions tagged .