MCPcopy Create free account
hub / github.com/Noumena-Network/code / isCtrlKey

Function isCtrlKey

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

Source from the content-addressed store, hash-verified

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

Callers 1

parseKeypressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected