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

Function isCtrlKey

src/ink/parse-keypress.ts:440–454  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

438}
439
440const isCtrlKey = (code: string): boolean => {
441 return [
442 'Oa',
443 'Ob',
444 'Oc',
445 'Od',
446 'Oe',
447 '[2^',
448 '[3^',
449 '[5^',
450 '[6^',
451 '[7^',
452 '[8^',
453 ].includes(code)
454}
455
456/**
457 * Decode XTerm-style modifier value to individual flags.

Callers 1

parseKeypressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected