Skip to content

Commit 6522f0e

Browse files
gh-121746: Bind Alt+Enter to "accept" in the REPL (GH-121754)
1 parent 74fbdcd commit 6522f0e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Lib/_pyrepl/reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def make_default_commands() -> dict[CommandName, type[Command]]:
130130
(r"\M-7", "digit-arg"),
131131
(r"\M-8", "digit-arg"),
132132
(r"\M-9", "digit-arg"),
133-
# (r'\M-\n', 'insert-nl'),
133+
(r"\M-\n", "accept"),
134134
("\\\\", "self-insert"),
135135
(r"\x1b[200~", "enable_bracketed_paste"),
136136
(r"\x1b[201~", "disable_bracketed_paste"),

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1670,6 +1670,7 @@ Fred Sells
16701670
Jiwon Seo
16711671
Iñigo Serna
16721672
Joakim Sernbrant
1673+
Rodrigo Girão Serrão
16731674
Roger D. Serwy
16741675
Jerry Seutter
16751676
Pete Sevander

0 commit comments

Comments
 (0)