Xpra: Ticket #1171: osx shadow keyboard layout support

See ticket:391#comment:12



Sat, 21 May 2016 05:15:48 GMT - Antoine Martin: status changed

Some fixes already: r12628 + r12626 + r12624. See also #1172.

Looks like there aren't virtual keycodes for most of the keys, so we will have to use something like this How to convert ASCII character to CGKeyCode.

Here are some of the missing keys: exclam quotedbl sterling dollar percent asciicircum ampersand asterisk parenleft parenright braceleft braceright underscore colon at numbersign asciitilde comma period slash less greater question notsign bar 'fr' layout: eacute egrave ccedilla agrave dead_circumflex one_superior two_superior section percent mu dead_diaresis degree currency horizconnector periodcentered dead_belowdot exclamdown oneeighth threeeights fiveeights seveneights trademark plusminus degree questiondown


Thu, 16 Feb 2017 17:21:08 GMT - Antoine Martin:

Related ticket: OSX client keyboard layout detection #1444


Maybe we should also set the modifier flags on key events using CGEventSetFlags

Text_Input_Sources, of particular interest:

More links:


Sun, 17 Sep 2017 06:51:26 GMT - Antoine Martin: milestone changed

Don't have time, but this looks like it would help: https://github.com/jonathanlurie/PyUserInputGen/blob/master/pykeyboard/mac.py (has a keymap for AZERTY)


Sun, 04 Aug 2019 03:57:22 GMT - Antoine Martin: milestone changed


Sat, 23 Jan 2021 05:16:54 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1171