cpython/Lib/_pyrepl
Paulie Peña 688f3a0d4b
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>
2025-01-10 13:52:19 +01:00
..
__init__.py
__main__.py
_minimal_curses.py gh-126456: Fix _pyrepl curses tigetstr() (#126472) 2024-11-13 17:46:10 +01:00
_threading_handler.py
commands.py
completing_reader.py
console.py gh-124960: Fixed barry_as_FLUFL future flag does not work in new REPL (#124999) 2024-10-14 15:53:50 +02:00
curses.py
fancy_termios.py
historical_reader.py
input.py
keymap.py
main.py
mypy.ini
pager.py
reader.py
readline.py gh-122273: Support PyREPL history on Windows (#127141) 2024-11-26 10:21:57 +01:00
simple_interact.py Fix while statements with non-bool conditions in _pyrepl (#127509) 2025-01-01 20:39:28 +00:00
trace.py
types.py
unix_console.py Fix while statements with non-bool conditions in _pyrepl (#127509) 2025-01-01 20:39:28 +00:00
unix_eventqueue.py
utils.py
windows_console.py gh-128388: pyrepl on Windows: add meta and ctrl+arrow keybindings (GH-128389) 2025-01-10 13:52:19 +01:00