(option)
| 304 | ); |
| 305 | |
| 306 | function checkShortcut(option) { |
| 307 | const keys = api.settings.get(option); |
| 308 | if (!keys.length) return false; |
| 309 | let shortcutTrue = true; |
| 310 | keys.forEach(function(sKey) { |
| 311 | if (!keyMap[sKey]) { |
| 312 | shortcutTrue = false; |
| 313 | } |
| 314 | }); |
| 315 | if (shortcutTrue && Object.values(keyMap).filter(c => c).length !== keys.length) shortcutTrue = false; |
| 316 | return shortcutTrue; |
| 317 | } |
| 318 | } |
| 319 | } |