Skip to content

Commit

Permalink
bpo-38944: Escape key now closes IDLE completion windows. (GH-17419)
Browse files Browse the repository at this point in the history
(cherry picked from commit 232689b)

Co-authored-by: JohnnyNajera <58344607+JohnnyNajera@users.noreply.github.com>
  • Loading branch information
miss-islington and JohnnyNajera authored Dec 9, 2019
1 parent 66d7a5d commit 4e0e452
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Lib/idlelib/NEWS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion Lib/idlelib/autocomplete_w.py
Original file line number Diff line number Diff line change
Expand Up @@ -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>"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Excape key now closes IDLE completion windows. Patch by Johnny Najera.

0 comments on commit 4e0e452

Please sign in to comment.