]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-38944: Escape key now closes IDLE completion windows. (GH-17419)
authorJohnnyNajera <58344607+JohnnyNajera@users.noreply.github.com>
Mon, 9 Dec 2019 23:22:16 +0000 (01:22 +0200)
committerTerry Jan Reedy <tjreedy@udel.edu>
Mon, 9 Dec 2019 23:22:16 +0000 (18:22 -0500)
Lib/idlelib/NEWS.txt
Lib/idlelib/autocomplete_w.py
Misc/NEWS.d/next/IDLE/2019-11-30-12-10-36.bpo-38944._3xjKG.rst [new file with mode: 0644]

index 5eb77398d95e607cbe30a54bef4e1ef1f6639daa..90e7d801535f59cba4b8ca7f5378d530a10d8802 100644 (file)
@@ -3,6 +3,9 @@ Released on 2020-10-05?
 ======================================
 
 
+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.
 
index 5035e067392e5fe86a672bf364a27a15b3dfe5b8..f20b633099788609a2969688a05d6229f5f4bee4 100644 (file)
@@ -17,7 +17,7 @@ KEYPRESS_VIRTUAL_EVENT_NAME = "<<autocompletewindow-keypress>>"
 # 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 (file)
index 0000000..38084fa
--- /dev/null
@@ -0,0 +1 @@
+Excape key now closes IDLE completion windows.  Patch by Johnny Najera.