diff options
author | JohnnyNajera <58344607+JohnnyNajera@users.noreply.github.com> | 2019-12-09 23:22:16 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2019-12-09 23:22:16 (GMT) |
commit | 232689b40d8fcbbac27c8705607ff482ea5b46f8 (patch) | |
tree | aade05d03aebc4bb241b54cbfc50b499373ed32d /Lib/idlelib | |
parent | 2ad7651c00c9b58b2b8b9e3687c82c203ece576c (diff) | |
download | cpython-232689b40d8fcbbac27c8705607ff482ea5b46f8.zip cpython-232689b40d8fcbbac27c8705607ff482ea5b46f8.tar.gz cpython-232689b40d8fcbbac27c8705607ff482ea5b46f8.tar.bz2 |
bpo-38944: Escape key now closes IDLE completion windows. (GH-17419)
Diffstat (limited to 'Lib/idlelib')
-rw-r--r-- | Lib/idlelib/NEWS.txt | 3 | ||||
-rw-r--r-- | Lib/idlelib/autocomplete_w.py | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt index 5eb7739..90e7d80 100644 --- a/Lib/idlelib/NEWS.txt +++ b/Lib/idlelib/NEWS.txt @@ -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. diff --git a/Lib/idlelib/autocomplete_w.py b/Lib/idlelib/autocomplete_w.py index 5035e06..f20b633 100644 --- a/Lib/idlelib/autocomplete_w.py +++ b/Lib/idlelib/autocomplete_w.py @@ -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>" |