diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2016-06-08 18:37:05 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2016-06-08 18:37:05 (GMT) |
commit | 24f3a1829fe007915a93e9515cd28470dd8a00d9 (patch) | |
tree | 2f131c566cb439e5ba8f876c514b6335bedc9bc6 /Lib/idlelib/macosx.py | |
parent | d03ed8a4d0fc6d736d91c9ee67e0a040245d78ca (diff) | |
download | cpython-24f3a1829fe007915a93e9515cd28470dd8a00d9.zip cpython-24f3a1829fe007915a93e9515cd28470dd8a00d9.tar.gz cpython-24f3a1829fe007915a93e9515cd28470dd8a00d9.tar.bz2 |
Issue #27262: move Aqua unbinding code, which enable context menus, to maxosx.
Diffstat (limited to 'Lib/idlelib/macosx.py')
-rw-r--r-- | Lib/idlelib/macosx.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/idlelib/macosx.py b/Lib/idlelib/macosx.py index 8c50a59..9d75631 100644 --- a/Lib/idlelib/macosx.py +++ b/Lib/idlelib/macosx.py @@ -206,6 +206,16 @@ def overrideRootMenu(root, flist): # remove redundant "IDLE Help" from menu del mainmenu.menudefs[-1][1][0] +def fixb2context(root): + '''Removed bad AquaTk Button-2 (right) and Paste bindings. + + They prevent context menu access and seem to be gone in AquaTk8.6. + See issue #24801. + ''' + root.unbind_class('Text', '<B2>') + root.unbind_class('Text', '<B2-Motion>') + root.unbind_class('Text', '<<PasteSelection>>') + def setupApp(root, flist): """ Perform initial OS X customizations if needed. @@ -227,3 +237,4 @@ def setupApp(root, flist): hideTkConsole(root) overrideRootMenu(root, flist) addOpenEventSupport(root, flist) + fixb2context() |