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

Function checkKeyCodes

static/vuejs/vue.runtime.esm.js:3441–3452  ·  view source on GitHub ↗

* Runtime helper for checking keyCodes from config.

(
  eventKeyCode,
  key,
  builtInAlias
)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected