(code: string)
| 438 | } |
| 439 | |
| 440 | const 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. |