Message270892
Addendum: I verified flag 8 is Mod1 is Numlock on Windows. http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/event-handlers.html has table that claims that 8 is Left Alt and that 16 is NumLock. From what you say above, true on non-mac *nix, and only there.
Flag 32 is Mod3 = Scrolllock on Windows.
Question: autocomplete.py refers to event.mc_state in
if hasattr(event, "mc_state") and event.mc_state:
# A modifier was pressed along with the tab, continue as usual.
return
It is not mentioned as an event field in either the NMT ref or http://www.tcl.tk/man/tcl8.6/TkCmd/event.htm#M29. However, it seems to be the state minus any 'lock' flags, Nun/Caps/Scrolllock on Windows. It must use a system-specific mask. The only Google hit for "tk event mc_state" is my recent commit of test_autocomplete.py. Is this a normal tk event attribute or a local addition?
There is also mc_type, which is 0 for a tab combinations. |
|
Date |
User |
Action |
Args |
2016-07-20 20:57:29 | terry.reedy | set | recipients:
+ terry.reedy, python-dev, serhiy.storchaka |
2016-07-20 20:57:29 | terry.reedy | set | messageid: <1469048249.79.0.778461601175.issue27294@psf.upfronthosting.co.za> |
2016-07-20 20:57:29 | terry.reedy | link | issue27294 messages |
2016-07-20 20:57:29 | terry.reedy | create | |
|