Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
24f3a182
Commit
24f3a182
authored
Jun 08, 2016
by
Terry Jan Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #27262: move Aqua unbinding code, which enable context menus, to maxosx.
parent
d03ed8a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
Lib/idlelib/macosx.py
Lib/idlelib/macosx.py
+11
-0
Lib/idlelib/pyshell.py
Lib/idlelib/pyshell.py
+0
-8
No files found.
Lib/idlelib/macosx.py
View file @
24f3a182
...
...
@@ -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
()
Lib/idlelib/pyshell.py
View file @
24f3a182
...
...
@@ -1548,14 +1548,6 @@ def main():
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'
,
'<B2>'
)
root
.
unbind_class
(
'Text'
,
'<B2-Motion>'
)
root
.
unbind_class
(
'Text'
,
'<<PasteSelection>>'
)
if
enable_edit
:
if
not
(
cmd
or
script
):
for
filename
in
args
[:]:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment