MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / handleCtrlD

Function handleCtrlD

src/hooks/useTextInput.ts:171–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

169 )
170
171 function handleCtrlD(): MaybeCursor {
172 if (cursor.text === '') {
173 // When input is empty, handle double-press
174 handleEmptyCtrlD()
175 return cursor
176 }
177 // When input is not empty, delete forward like iPython
178 return cursor.del()
179 }
180
181 function killToLineEnd(): Cursor {
182 const { cursor: newCursor, killed } = cursor.deleteToLineEnd()

Callers 1

Calls 1

delMethod · 0.80

Tested by

no test coverage detected