Skip to content

Commit 308857b

Browse files
[3.13] gh-121746: Bind Alt+Enter to "accept" in the REPL (GH-121754) (GH-121803)
(cherry picked from commit 6522f0e) Co-authored-by: Rodrigo Girão Serrão <[email protected]>
1 parent a2a4f5e commit 308857b

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
@@ -1667,6 +1667,7 @@ Fred Sells
16671667
Jiwon Seo
16681668
Iñigo Serna
16691669
Joakim Sernbrant
1670+
Rodrigo Girão Serrão
16701671
Roger D. Serwy
16711672
Jerry Seutter
16721673
Pete Sevander

0 commit comments

Comments
 (0)