Commit 7c97122
authored
Fix: Add support for forward_char as a keyboard shortcut (ipython#15003)
The `forward_char` command is used to move the cursor forward by one
character in the IPython terminal. However, when trying to create a
keyboard shortcut for it (e.g., binding it to `Alt + l`), the following
error was raised:
```
ValueError: prompt_toolkit:named_commands.forward_char is not a known shortcut command.
```
This happened because the `forward_char` command was not registered in
the system. Specifically, the registration line was missing in
`IPython/terminal/shortcuts/__init__.py`.
**Fix:**
Added the missing registration line for `forward_char`. Now it can be
used as a keyboard shortcut without issues.
**Impact:**
Users can now bind custom key combinations to `forward_char` without
encountering errors.1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
631 | 631 | | |
632 | 632 | | |
633 | 633 | | |
| 634 | + | |
634 | 635 | | |
635 | 636 | | |
636 | 637 | | |
0 commit comments