Tkinter windows key event
After some digging I found this: https://www.tcl.tk/man/tcl8.6/TkCmd/keysyms.htmThese: <Win_L>
, <Win_R>
, appear to be the correct keys for Windows. Tested in Python 3.4 on Win7.
Okay, I found the answer. It was pretty simple, and I don't know why I couldn't find it on the Internet, anywhere.
The event is called Super_L
(for the left Windows key on Linux). The right Windows key is Super_R
. I don't know if these events work on Windows and Mac, though.
Anyway, the reason my event key-press finder didn't find it was because I had a script running at my computer start-up that defined the compose key as being the left windows key. So, it didn't register for some reason.