Skip to content

Commit 58c74ea

Browse files
committed
remove redundant switch cases
1 parent bbc2338 commit 58c74ea

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

cli/src/state/atoms/keyboard.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,6 @@ function handleHistoryKeys(get: any, set: any, key: Key): void {
627627
* Handles shell command input and execution using existing text buffer
628628
*/
629629
async function handleShellKeys(get: any, set: any, key: Key): Promise<void> {
630-
const { textBufferStringAtom } = await import("./textBuffer.js")
631630
const currentInput = get(textBufferStringAtom)
632631

633632
switch (key.name) {
@@ -656,14 +655,6 @@ async function handleShellKeys(get: any, set: any, key: Key): Promise<void> {
656655
set(toggleShellModeAtom)
657656
return
658657

659-
case "backspace":
660-
case "delete":
661-
case "left":
662-
case "right":
663-
// Let the default text input handlers deal with these
664-
handleTextInputKeys(get, set, key)
665-
return
666-
667658
default:
668659
// Character input - let the default text input handlers deal with it
669660
handleTextInputKeys(get, set, key)

0 commit comments

Comments
 (0)