(code: string)
| 442 | } |
| 443 | |
| 444 | const 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. |