Skip to content

Commit

Permalink
pythongh-121746: Bind Alt+Enter to "accept" in the REPL (pythonGH-121754
Browse files Browse the repository at this point in the history
)

(cherry picked from commit 6522f0e)

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
  • Loading branch information
rodrigogiraoserrao authored and miss-islington committed Jul 15, 2024
1 parent a2a4f5e commit 7b035b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/_pyrepl/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def make_default_commands() -> dict[CommandName, type[Command]]:
(r"\M-7", "digit-arg"),
(r"\M-8", "digit-arg"),
(r"\M-9", "digit-arg"),
# (r'\M-\n', 'insert-nl'),
(r"\M-\n", "accept"),
("\\\\", "self-insert"),
(r"\x1b[200~", "enable_bracketed_paste"),
(r"\x1b[201~", "disable_bracketed_paste"),
Expand Down
1 change: 1 addition & 0 deletions Misc/ACKS
Original file line number Diff line number Diff line change
Expand Up @@ -1667,6 +1667,7 @@ Fred Sells
Jiwon Seo
Iñigo Serna
Joakim Sernbrant
Rodrigo Girão Serrão
Roger D. Serwy
Jerry Seutter
Pete Sevander
Expand Down

0 comments on commit 7b035b1

Please sign in to comment.