(codepoint: number)
| 50 | } |
| 51 | |
| 52 | export 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 | |
| 65 | export function codepointToImplicitTextMods(codepoint: number): number { |
| 66 | if (codepoint >= 65 && codepoint <= 90) { |