diff options
author | Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com> | 2024-07-15 17:47:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-15 17:47:56 (GMT) |
commit | 6522f0e438a8c56a8f3cce2095b193ea6e3f5016 (patch) | |
tree | 33afe4a345433c5916850657f271fd2cfb699550 /Lib/_pyrepl | |
parent | 74fbdcd74abc1bac6846ec92f00d21fe8f87610b (diff) | |
download | cpython-6522f0e438a8c56a8f3cce2095b193ea6e3f5016.zip cpython-6522f0e438a8c56a8f3cce2095b193ea6e3f5016.tar.gz cpython-6522f0e438a8c56a8f3cce2095b193ea6e3f5016.tar.bz2 |
gh-121746: Bind Alt+Enter to "accept" in the REPL (GH-121754)
Diffstat (limited to 'Lib/_pyrepl')
-rw-r--r-- | Lib/_pyrepl/reader.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/_pyrepl/reader.py b/Lib/_pyrepl/reader.py index b2da038..8b282a3 100644 --- a/Lib/_pyrepl/reader.py +++ b/Lib/_pyrepl/reader.py @@ -130,7 +130,7 @@ default_keymap: tuple[tuple[KeySpec, CommandName], ...] = tuple( (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"), |