Issue 27193: Tkinter Unresponsive With Special Keys (original) (raw)

When working on my program (the same one where I found Issue 27192), I tried adding keyboard shortcuts. I discovered that Tkinter doe not register the keys Alt, Command, Control, Fn, Shift and Caps Lock on a Mac.

Tkinter is essentially just a think wrapper around the Tk graphical toolkit. Keyboard modifier mappings are handled by Tk (or OS X), and not Tkinter. Unfortunately, for various reasons, how Tk handles keyboard modifiers varies somewhat among OS platforms (Windows-native, X11-based, and OS X-native) and even between versions of Tk on the same platform. One source for more detailed information about modifier key differences is the following Tk wiki page:

http://wiki.tcl.tk/28331