https://github.com/python/cpython/commit/308857b82ad0728b3be6435b056923ecdf82fce3
commit: 308857b82ad0728b3be6435b056923ecdf82fce3
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: ambv <[email protected]>
date: 2024-07-15T20:14:50+02:00
summary:

[3.13] gh-121746: Bind Alt+Enter to "accept" in the REPL (GH-121754) (GH-121803)

(cherry picked from commit 6522f0e438a8c56a8f3cce2095b193ea6e3f5016)

Co-authored-by: Rodrigo Girão Serrão 
<[email protected]>

files:
M Lib/_pyrepl/reader.py
M Misc/ACKS

diff --git a/Lib/_pyrepl/reader.py b/Lib/_pyrepl/reader.py
index 5d83ce4df0d49f..bb1406bae7483e 100644
--- a/Lib/_pyrepl/reader.py
+++ b/Lib/_pyrepl/reader.py
@@ -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"),
diff --git a/Misc/ACKS b/Misc/ACKS
index 41ff4fe59aef0a..d5ee1f84f95088 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -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

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to