[Python-checkins] bpo-38944: Escape key now closes IDLE completion windows. (GH-17419)

Miss Islington (bot) webhook-mailer at python.org
Mon Dec 9 18:38:38 EST 2019


https://github.com/python/cpython/commit/2b2c7bf231aadc0dd985e02549b1a8b93334047a
commit: 2b2c7bf231aadc0dd985e02549b1a8b93334047a
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-12-09T15:38:33-08:00
summary:

bpo-38944: Escape key now closes IDLE completion windows. (GH-17419)

(cherry picked from commit 232689b40d8fcbbac27c8705607ff482ea5b46f8)

Co-authored-by: JohnnyNajera <58344607+JohnnyNajera at users.noreply.github.com>

files:
A Misc/NEWS.d/next/IDLE/2019-11-30-12-10-36.bpo-38944._3xjKG.rst
M Lib/idlelib/NEWS.txt
M Lib/idlelib/autocomplete_w.py

diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt
index ed5cd4dc03b31..900ec5b33d30d 100644
--- a/Lib/idlelib/NEWS.txt
+++ b/Lib/idlelib/NEWS.txt
@@ -3,6 +3,9 @@ Released on 2019-12-16?
 ======================================
 
 
+bpo-38944: Excape key now closes IDLE completion windows.  Patch by
+Johnny Najera.
+
 bpo-38862: 'Strip Trailing Whitespace' on the Format menu removes extra
 newlines at the end of non-shell files.
 
diff --git a/Lib/idlelib/autocomplete_w.py b/Lib/idlelib/autocomplete_w.py
index 5035e067392e5..f20b633099788 100644
--- a/Lib/idlelib/autocomplete_w.py
+++ b/Lib/idlelib/autocomplete_w.py
@@ -17,7 +17,7 @@
 # before the default specific IDLE function
 KEYPRESS_SEQUENCES = ("<Key>", "<Key-BackSpace>", "<Key-Return>", "<Key-Tab>",
                       "<Key-Up>", "<Key-Down>", "<Key-Home>", "<Key-End>",
-                      "<Key-Prior>", "<Key-Next>")
+                      "<Key-Prior>", "<Key-Next>", "<Key-Escape>")
 KEYRELEASE_VIRTUAL_EVENT_NAME = "<<autocompletewindow-keyrelease>>"
 KEYRELEASE_SEQUENCE = "<KeyRelease>"
 LISTUPDATE_SEQUENCE = "<B1-ButtonRelease>"
diff --git a/Misc/NEWS.d/next/IDLE/2019-11-30-12-10-36.bpo-38944._3xjKG.rst b/Misc/NEWS.d/next/IDLE/2019-11-30-12-10-36.bpo-38944._3xjKG.rst
new file mode 100644
index 0000000000000..38084fafd2f56
--- /dev/null
+++ b/Misc/NEWS.d/next/IDLE/2019-11-30-12-10-36.bpo-38944._3xjKG.rst
@@ -0,0 +1 @@
+Excape key now closes IDLE completion windows.  Patch by Johnny Najera.



More information about the Python-checkins mailing list