This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients python-dev, serhiy.storchaka, terry.reedy
Date 2016-07-20.20:57:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1469048249.79.0.778461601175.issue27294@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-07-20 20:57:29terry.reedysetrecipients: + terry.reedy, python-dev, serhiy.storchaka
2016-07-20 20:57:29terry.reedysetmessageid: <1469048249.79.0.778461601175.issue27294@psf.upfronthosting.co.za>
2016-07-20 20:57:29terry.reedylinkissue27294 messages
2016-07-20 20:57:29terry.reedycreate