[issue10404] IDLE on OS X popup menus do not work: cannot set/clear breakpoints

Ronald Oussoren report at bugs.python.org
Tue Dec 7 16:58:43 CET 2010


Ronald Oussoren <ronaldoussoren at mac.com> added the comment:

The patch binds the menu to Ctrl-Button-1 (that is, the way you open context menu's on OSX systems with a single button), however rightclick still doens't work (but does an X11-style paste operation).

I propose adding an explicit binding for button-2 as well:

            text.bind("<Control-Button-1>",self.right_menu_event)
            text.bind("<Button-2>",self.right_menu_event)

This ensures that the context menu can be opened using the expected mouse button.

An IMO additional bonus is that the odd X11-style pasting behaviour is disabled (that is, right-click is no longer equivalent to Cmd-V), although one could claim that this breaks backward compatibility.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10404>
_______________________________________


More information about the Python-bugs-list mailing list