(codepoint: number, modifier: number)
| 358 | } |
| 359 | |
| 360 | function normalizeShiftedLetterIdentityCodepoint(codepoint: number, modifier: number): number { |
| 361 | const effectiveModifier = modifier & ~LOCK_MASK; |
| 362 | if ((effectiveModifier & MODIFIERS.shift) !== 0 && codepoint >= 65 && codepoint <= 90) { |
| 363 | return codepoint + 32; |
| 364 | } |
| 365 | return codepoint; |
| 366 | } |
| 367 | |
| 368 | const LEGACY_KEY_SEQUENCES = { |
| 369 | up: ["\x1b[A", "\x1bOA"], |
no outgoing calls
no test coverage detected