MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / codepointToCtrlKeyCode

Function codepointToCtrlKeyCode

packages/core/src/app/createApp/keybindings.ts:52–63  ·  view source on GitHub ↗
(codepoint: number)

Source from the content-addressed store, hash-verified

50}
51
52export function codepointToCtrlKeyCode(codepoint: number): number | null {
53 if (codepoint === 9 || codepoint === 13) {
54 return null;
55 }
56 if (codepoint >= 1 && codepoint <= 26) {
57 return codepoint + 64;
58 }
59 if (codepoint >= 28 && codepoint <= 31) {
60 return codepoint + 64;
61 }
62 return null;
63}
64
65export function codepointToImplicitTextMods(codepoint: number): number {
66 if (codepoint >= 65 && codepoint <= 90) {

Callers 1

processEventBatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected