MCPcopy Create free account
hub / github.com/TruthHun/BookStack / checkKeyCodes

Function checkKeyCodes

static/vuejs/vue.esm.js:3445–3456  ·  view source on GitHub ↗

* Runtime helper for checking keyCodes from config.

(
  eventKeyCode,
  key,
  builtInAlias
)

Source from the content-addressed store, hash-verified

3443 * Runtime helper for checking keyCodes from config.
3444 */
3445function checkKeyCodes (
3446 eventKeyCode,
3447 key,
3448 builtInAlias
3449) {
3450 var keyCodes = config.keyCodes[key] || builtInAlias;
3451 if (Array.isArray(keyCodes)) {
3452 return keyCodes.indexOf(eventKeyCode) === -1
3453 } else {
3454 return keyCodes !== eventKeyCode
3455 }
3456}
3457
3458/* */
3459

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected