Skip to content

Commit 0a50a27

Browse files
committed
GH-88564: IDLE - fix 2 menu hotkey displays
On Mac Cocoa, ^+backspace and ^+space were misdisplayed as ^B and ^S. Replace 'backslash' with '\' everywhere, just as 'slash', for example, is replaced with '/'. On Mac Cocoa, change'space' to 'Space', which then displays as 'Space' instead of 'S'. ('Space' is also used for the Mac-specific Emoji & Symbols entry.)
1 parent 9dc0836 commit 0a50a27

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/idlelib/editor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1624,6 +1624,8 @@ def prepstr(s):
16241624
'bracketleft': '[',
16251625
'bracketright': ']',
16261626
'slash': '/',
1627+
'backslash': '\\',
1628+
'space': 'Space' if macosx.isCocoaTk() else 'space', # GH-88564.
16271629
}
16281630

16291631
def get_accelerator(keydefs, eventname):

0 commit comments

Comments
 (0)