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

Function checkKeyCodes

static/vuejs/vue.js:3447–3458  ·  view source on GitHub ↗

* Runtime helper for checking keyCodes from config.

(
  eventKeyCode,
  key,
  builtInAlias
)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected