Opened 6 years ago
Last modified 16 months ago
#1171 assigned enhancement
osx shadow keyboard layout support
Reported by: | Antoine Martin | Owned by: | Antoine Martin |
---|---|---|---|
Priority: | major | Milestone: | future |
Component: | platforms | Version: | trunk |
Keywords: | osx shadow keyboard | Cc: |
Description
Change History (5)
comment:1 Changed 6 years ago by
Status: | new → assigned |
---|
comment:5 Changed 5 years ago by
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:
- pyobjc-framework-InputMethodKit: pyobjc wrapper for InputMethodKit
- input_source.py: list all input sources
- pykeycode: Python wrapper around the Mac TIS functions to convert between chars and keycodes
- Character code translation table for Mac/PC/Linux
comment:6 Changed 5 years ago by
Milestone: | 1.0 → 2.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)
comment:8 Changed 3 years ago by
Milestone: | 2.3 → future |
---|
comment:9 Changed 16 months ago by
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1171
Note: See
TracTickets for help on using
tickets.
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