diff options
author | Paulie Peña <203125+paulie4@users.noreply.github.com> | 2025-01-10 12:52:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-10 12:52:19 (GMT) |
commit | 688f3a0d4b94874ff6d72af3baafd8bbf911153e (patch) | |
tree | e7145801bd4a6d2a5b7ef5a9949423f48b1b4bab /Misc | |
parent | baf65715fc9002e43cd0e1010b8dba9b4c84d503 (diff) | |
download | cpython-688f3a0d4b94874ff6d72af3baafd8bbf911153e.zip cpython-688f3a0d4b94874ff6d72af3baafd8bbf911153e.tar.gz cpython-688f3a0d4b94874ff6d72af3baafd8bbf911153e.tar.bz2 |
gh-128388: pyrepl on Windows: add meta and ctrl+arrow keybindings (GH-128389)
Fix `Lib/_pyrepl/windows_console.py` to support more keybindings, like the
`Ctrl`+`←` and `Ctrl`+`→` word-skipping keybindings and those with meta (i.e. Alt),
e.g. to `kill-word` or `backward-kill-word`.
Specifics: if Ctrl is pressed, emit "ctrl left" and "ctrl right" instead of just "left" or
"right," and if Meta/Alt is pressed, emit the special key code for meta before
emitting the other key that was pressed.
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2025-01-01-19-24-43.gh-issue-128388.8UdMz_.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2025-01-01-19-24-43.gh-issue-128388.8UdMz_.rst b/Misc/NEWS.d/next/Library/2025-01-01-19-24-43.gh-issue-128388.8UdMz_.rst new file mode 100644 index 0000000..5bef0fd --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-01-01-19-24-43.gh-issue-128388.8UdMz_.rst @@ -0,0 +1 @@ +Fix ``PyREPL`` on Windows to support more keybindings, like the :kbd:`Control-←` and :kbd:`Control-→` word-skipping keybindings and those with meta (i.e. :kbd:`Alt`), e.g. :kbd:`Alt-d` to ``kill-word`` or :kbd:`Alt-Backspace` ``backward-kill-word``. |