(map, name, combo)
| 669 | } |
| 670 | |
| 671 | function addCommandCombo(map, name, combo) { |
| 672 | if (!combo) return; |
| 673 | let entry = map.get(name); |
| 674 | if (!entry) { |
| 675 | entry = new Set(); |
| 676 | map.set(name, entry); |
| 677 | } |
| 678 | entry.add(combo); |
| 679 | } |
| 680 | |
| 681 | function normalizeKey(key, platform = "win") { |
| 682 | if (!key) return null; |
no test coverage detected