summaryrefslogtreecommitdiff
path: root/Lib/idlelib/query.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib/query.py')
-rw-r--r--Lib/idlelib/query.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/idlelib/query.py b/Lib/idlelib/query.py
index d2d1472a0e..c4e2891f25 100644
--- a/Lib/idlelib/query.py
+++ b/Lib/idlelib/query.py
@@ -53,6 +53,7 @@ class Query(Toplevel):
self.transient(parent)
self.grab_set()
self.bind('<Key-Return>', self.ok)
+ self.bind('<Key-Escape>', self.cancel)
self.protocol("WM_DELETE_WINDOW", self.cancel)
self.parent = parent
self.message = message