(hotkey)
| 306 | } |
| 307 | |
| 308 | function modifiersForHotkey(hotkey) { |
| 309 | return [ |
| 310 | hotkey.meta ? "command down" : null, |
| 311 | hotkey.ctrl ? "control down" : null, |
| 312 | hotkey.alt ? "option down" : null, |
| 313 | hotkey.shift ? "shift down" : null, |
| 314 | ] |
| 315 | .filter(Boolean) |
| 316 | .join(", "); |
| 317 | } |
| 318 | |
| 319 | function pressHotkey(hotkey) { |
| 320 | const keyCode = APPLE_KEY_CODES[hotkey.code]; |