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

Function handleCtrlD

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

delMethod · 0.80

Tested by

no test coverage detected