xpra icon
Bug tracker and wiki

Opened 21 months ago

Last modified 4 months ago

#1171 assigned enhancement

osx shadow keyboard layout support

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: major Milestone: 2.3
Component: platforms Version: trunk
Keywords: osx shadow keyboard Cc:


Change History (6)

comment:1 Changed 20 months ago by Antoine Martin

Status: newassigned

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

Last edited 20 months ago by Antoine Martin (previous) (diff)

comment:2 Changed 18 months ago by Antoine Martin

Milestone: 1.01.1

Milestone renamed

comment:3 Changed 17 months ago by Antoine Martin

Milestone: 1.12.0

Milestone renamed

comment:4 Changed 12 months ago by Antoine Martin

Milestone: 2.02.2

comment:5 Changed 11 months ago by 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:

  • kTISPropertyInputSourceLanguages
  • kTISNotifySelectedKeyboardInputSourceChanged: '
  • TISSelectInputSource : to set a particular layout. See for example LayoutTracker.

More links:

comment:6 Changed 4 months ago by Antoine Martin

Milestone: 2.22.3

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)

Note: See TracTickets for help on using tickets.