mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
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.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user