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

Function checkKeyCodes

static/vuejs/vue.runtime.js:3443–3454  ·  view source on GitHub ↗

* Runtime helper for checking keyCodes from config.

(
  eventKeyCode,
  key,
  builtInAlias
)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected