summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/config.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2018-11-15 18:15:13 (GMT)
committerGitHub <noreply@github.com>2018-11-15 18:15:13 (GMT)
commitb65413b497a07f521d835b799be7dd0afcedbd65 (patch)
tree485178060d091834da5ced196584e358a1b6844f /Lib/idlelib/config.py
parent70f61b933f5f4bbb28d2c1a2ebf3a555513e67b0 (diff)
downloadcpython-b65413b497a07f521d835b799be7dd0afcedbd65.zip
cpython-b65413b497a07f521d835b799be7dd0afcedbd65.tar.gz
cpython-b65413b497a07f521d835b799be7dd0afcedbd65.tar.bz2
bpo-35213: Where appropriate, use 'macOS' in idlelib. (#10478)
Diffstat (limited to 'Lib/idlelib/config.py')
-rw-r--r--Lib/idlelib/config.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/Lib/idlelib/config.py b/Lib/idlelib/config.py
index 0eb90fc..79d988f 100644
--- a/Lib/idlelib/config.py
+++ b/Lib/idlelib/config.py
@@ -562,12 +562,11 @@ class IdleConf:
result = self.GetKeySet(self.CurrentKeys())
if sys.platform == "darwin":
- # OS X Tk variants do not support the "Alt" keyboard modifier.
- # So replace all keybingings that use "Alt" with ones that
- # use the "Option" keyboard modifier.
- # TODO (Ned?): the "Option" modifier does not work properly for
- # Cocoa Tk and XQuartz Tk so we should not use it
- # in default OS X KeySets.
+ # macOS (OS X) Tk variants do not support the "Alt"
+ # keyboard modifier. Replace it with "Option".
+ # TODO (Ned?): the "Option" modifier does not work properly
+ # for Cocoa Tk and XQuartz Tk so we should not use it
+ # in the default 'OSX' keyset.
for k, v in result.items():
v2 = [ x.replace('<Alt-', '<Option-') for x in v ]
if v != v2: