diff -r cbb5c5da28f2 Lib/idlelib/macosx.py --- a/Lib/idlelib/macosx.py Tue Jun 07 15:35:37 2016 -0400 +++ b/Lib/idlelib/macosx.py Tue Jun 07 21:08:43 2016 -0400 @@ -206,6 +206,16 @@ # 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', '') + root.unbind_class('Text', '') + root.unbind_class('Text', '<>') + def setupApp(root, flist): """ Perform initial OS X customizations if needed. @@ -227,3 +237,4 @@ hideTkConsole(root) overrideRootMenu(root, flist) addOpenEventSupport(root, flist) + fixb2context() diff -r cbb5c5da28f2 Lib/idlelib/pyshell.py --- a/Lib/idlelib/pyshell.py Tue Jun 07 15:35:37 2016 -0400 +++ b/Lib/idlelib/pyshell.py Tue Jun 07 21:08:43 2016 -0400 @@ -1548,14 +1548,6 @@ flist = PyShellFileList(root) macosx.setupApp(root, flist) - if macosx.isAquaTk(): - # There are some screwed up <2> class bindings for text - # widgets defined in Tk which we need to do away with. - # See issue #24801. - root.unbind_class('Text', '') - root.unbind_class('Text', '') - root.unbind_class('Text', '<>') - if enable_edit: if not (cmd or script): for filename in args[:]: