diff options
| author | DeWitt Clinton <[email protected]> | 2025-05-23 22:13:57 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-23 22:13:57 -0700 |
| commit | 7a3a9066f96440dd1cdbfbc8be576648f7e73fe1 (patch) | |
| tree | 5c899b04a477bb6f43b016925422d07eb264cd22 /packages/cli/src/ui/App.tsx | |
| parent | 30080b9f4e0341a1b69f3ea4c2a7cffd88d77c8c (diff) | |
Add additional readline-like keybindings. (#524)
Adds the following conventional readline-like keybindings:
- `Ctrl+H`: Delete the previous character.
- `Ctrl+D`: Delete the next character.
Additionally, remaps the Debug Console command from Ctrl+D to Ctrl+O, which had been first introduced in PR #486.
Diffstat (limited to 'packages/cli/src/ui/App.tsx')
| -rw-r--r-- | packages/cli/src/ui/App.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/cli/src/ui/App.tsx b/packages/cli/src/ui/App.tsx index ac36b87c..79b6b9ab 100644 --- a/packages/cli/src/ui/App.tsx +++ b/packages/cli/src/ui/App.tsx @@ -84,8 +84,7 @@ export const App = ({ [consoleMessages], ); useInput((input: string, key: InkKeyType) => { - // Check for Ctrl+D key press - if (key.ctrl && (input === 'd' || input === 'D')) { + if (key.ctrl && input === 'o') { setShowErrorDetails((prev) => !prev); refreshStatic(); } |
