MCPcopy Index your code
hub / github.com/MALSync/MALSync / checkShortcut

Function checkShortcut

src/utils/player.ts:306–317  ·  view source on GitHub ↗
(option)

Source from the content-addressed store, hash-verified

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}

Callers 1

keyEventFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected