diff -r 2c124e30a324 Lib/idlelib/EditorWindow.py
--- a/Lib/idlelib/EditorWindow.py Fri Aug 07 00:43:39 2015 -0700
+++ b/Lib/idlelib/EditorWindow.py Fri Aug 07 14:55:32 2015 -0700
@@ -171,13 +171,20 @@
if macosxSupport.isAquaTk():
# Command-W on editorwindows doesn't work without this.
text.bind('<>', self.close_event)
- # Some OS X systems have only one mouse button,
- # so use control-click for pulldown menus there.
- # (Note, AquaTk defines <2> as the right button if
- # present and the Tk Text widget already binds <2>.)
- text.bind("",self.right_menu_event)
+ # Some OS X systems have only one mouse button, so use
+ # control-click for popup context menus there. For two
+ # buttons, AquaTk defines <2> as the right button, not <3>.
+ # There are some screwed up <2> class bindings for text
+ # widgets defined in Tk which we need to do away with.
+ # See issue #24801.
+ text.bind_class('Text', '', '')
+ text.bind_class('Text', '<>', '')
+ text.bind_class('Text', '', '')
+ text.bind("", self.right_menu_event)
+ text.bind("<2>", self.right_menu_event)
+
else:
- # Elsewhere, use right-click for pulldown menus.
+ # Elsewhere, use right-click for popup menus.
text.bind("<3>",self.right_menu_event)
text.bind("<>", self.cut)
text.bind("<>", self.copy)