Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osx shadow keyboard layout support #1171

Open
totaam opened this issue Apr 16, 2016 · 4 comments
Open

osx shadow keyboard layout support #1171

totaam opened this issue Apr 16, 2016 · 4 comments

Comments

@totaam
Copy link
Collaborator

totaam commented Apr 16, 2016

Issue migrated from trac ticket # 1171

component: platforms | priority: major | keywords: osx shadow keyboard

2016-04-16 08:54:22: antoine created the issue


See #391#comment:12

@totaam
Copy link
Collaborator Author

totaam commented May 21, 2016

2016-05-21 06:15:48: antoine changed status from new to assigned

@totaam
Copy link
Collaborator Author

totaam commented May 21, 2016

2016-05-21 06:15:48: antoine commented


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

@totaam
Copy link
Collaborator Author

totaam commented Feb 16, 2017

2017-02-16 17:21:08: antoine commented


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:

@totaam
Copy link
Collaborator Author

totaam commented Sep 17, 2017

Don't have time, but this looks like it would help: pykeyboard mac (has a keymap for AZERTY)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant