Menu

#1980 Alt-key combinations do not work on Mac

None
Accepted
Medium
2020-08-06
2017-07-08
No

Alt and AltGr key combinations do not work. It this is of any use, here is what I get on nasal console
by pressing A with different modifiers:

A: { key: 97, modifier: {}, pressed: 1 }, { key: 97, modifier: {}, pressed: 0 }
Ctrl-A: { key: 1, modifier: {ctrl:1}, pressed: 1 }, { key: 1, modifier: {ctrl:1}, pressed: 0 }
Option-A: { key: 299, modifier: {alt:1}, pressed: 1 }, { key: 299, modifier: {alt:1}, pressed: 0 }
Ctrl-Option-A: { key: 1, modifier: {alt:1, ctrl:1}, pressed: 1 }, { key: 1, modifier: {alt:1,ctrl:1}, pressed: 0 }

The Ctrl-Option was my attempt for AltGr. Tried different keyboard mappings.
System: MacBook Pro (15-inch, 2016), MacOS 10.12.5, Radeon Pro 455 2048 MB Intel HD Graphics 530 1536 MB, US English, US keybd.

Maybe this issue is connected to #1937.

Discussion

  • James Turner

    James Turner - 2017-07-20

    This will be fixed in the next release hopefully - I am rewriting how modifier keys are handled.

     
  • James Turner

    James Turner - 2017-07-20
    • status: New --> Accepted
    • assigned_to: James Turner
    • Priority: Low --> Medium
     
  • James Turner

    James Turner - 2017-07-20

    For clarification, what value would you expect for 'key' (in Nasal) when Alt or AltGr are pressed?

     
  • Villem Alango

    Villem Alango - 2017-07-21

    Hi, I'll leave it to you to decide, because I'm not familiar w FG codebase/architecture. However, here is my (VAL in comments) hack attached. I hope the nasal code won't need any tweaking.
    It fixed major problems with keys I needed to operate Eurochopter - which I'm still crashing anyway ;)

     
  • legoboyvdlp

    legoboyvdlp - 2020-08-06

    Is this corrected?

     
  • James Turner

    James Turner - 2020-08-06

    Not sure: do we have Alt-N bindings?

     

Log in to post a comment.

MongoDB Logo MongoDB