Skip to content

Commit

Permalink
Getting lost ...
Browse files Browse the repository at this point in the history
Removing the <<close-all-windows>> bindings
is still necessary to avoid double close
pop-ups
  • Loading branch information
ronaldoussoren committed Dec 27, 2023
1 parent 92c1206 commit 4cefbea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Lib/idlelib/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

from tkinter.font import Font
import idlelib
from idlelib import macosx

class InvalidConfigType(Exception): pass
class InvalidConfigSet(Exception): pass
Expand Down Expand Up @@ -660,6 +661,9 @@ def GetCoreKeys(self, keySetName=None):
'<<zoom-height>>': ['<Alt-Key-2>'],
}

if macosx.isAquaTk():
del keyBindings['<<close-all-windows>>']

if keySetName:
if not (self.userCfg['keys'].has_section(keySetName) or
self.defaultCfg['keys'].has_section(keySetName)):
Expand Down

0 comments on commit 4cefbea

Please sign in to comment.