I'd like keyboard viewer to show up while I hold the option key or after pressing a "dead key" such as option-e, but to hide otherwise.
I know where the letters are. But it would be nice to get an automatic reminder of how to type special characters, especially since my keyboard layout (known as "qwpr") allows typing hundreds of special glyphs.
Best Answer
You could use a private.xml like this with KeyRemap4MacBook:
Save this script as
/Applications/QuitKeyboardViewer.app
in AppleScript Editor:There is a noticeable (but not that long) delay before KeyboardViewer is opened or closed. If for example you hold option and command simultaneously, KeyboardViewer is shown if you press option first but not if you press command first.