mathiasbynens / custom.keylayout

Custom QWERTY/AZERTY .keylayout files for use with Apple keyboards

Home Page:https://mths.be/keylayout

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for OS X Lion’s “key variations”

mathiasbynens opened this issue · comments

In Lion you can hold down a key to show its variations.

Screenshot

This doesn’t seem to work with custom keyboard layouts that were based on Snow Leopard-layouts though.

Ukelele.app’s “New From Current Input Source” doesn’t work in Lion anymore: http://groups.google.com/group/ukelele-users/browse_thread/thread/109cdaf6c840eadf

This is still not possible with Ukelele 2.1.8, but at least you can create new keyboard layouts based on the default ones again: http://groups.google.com/group/ukelele-users/browse_thread/thread/5e5b74fd9cd7f793

I’ve started a thread on the Apple subsite of Stack Exchange: http://apple.stackexchange.com/q/44906/4408 Turns out the characters in the popovers are defined in /System/Library/Input Methods/PressAndHold.app/Contents/Resources/Keyboard-en.plist. There’s no way of knowing if it’s even possible to define them from within a .keylayout file.

Ukelele.app 2.2 supports this!

By saving a keyboard layout in a bundle, it will become compatible with the “press and hold” mechanism for entering diacritics, introduced in OS X 10.7 (Lion). For this purpose, an “intended language” can be supplied (default is the system language), which will determine which possibilities are offered in the pop-up. However, such bundles may not work with OS X 10.4 (Tiger) and earlier.