summaryrefslogtreecommitdiff
path: root/Lib/idlelib/config_key.py
diff options
context:
space:
mode:
authorTal Einat <taleinat+github@gmail.com>2018-08-02 09:18:29 +0300
committerGitHub <noreply@github.com>2018-08-02 09:18:29 +0300
commit10ea9409ceb5da83cb380b610750551e26561044 (patch)
tree202ccd012209ce6acb90928fa579a169eb4bd3ea /Lib/idlelib/config_key.py
parent80b762f010097ab8137782e5fbdc89c5c620ed4e (diff)
downloadcpython-git-10ea9409ceb5da83cb380b610750551e26561044.tar.gz
bpo-34120: fix IDLE freezing after closing dialogs (GH-8603)
Added missing .grab_release() calls to all places where we call .grab_set().
Diffstat (limited to 'Lib/idlelib/config_key.py')
-rw-r--r--Lib/idlelib/config_key.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/idlelib/config_key.py b/Lib/idlelib/config_key.py
index 7f4bb49ec8..abab74265f 100644
--- a/Lib/idlelib/config_key.py
+++ b/Lib/idlelib/config_key.py
@@ -235,10 +235,12 @@ class GetKeysDialog(Toplevel):
return
if (self.advanced or self.KeysOK(keys)) and self.bind_ok(keys):
self.result = keys
+ self.grab_release()
self.destroy()
def Cancel(self, event=None):
self.result=''
+ self.grab_release()
self.destroy()
def KeysOK(self, keys):