How to use the diagram-js/lib/features/keyboard/KeyboardUtil.isKey function in diagram-js

To help you get started, we’ve selected a few diagram-js examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github zeebe-io / zeebe-modeler / client / src / app / KeyboardBindings.js View on Github external
function isRedo(event) {
  return isCommandOrControl(event) &&
    (isKey([ 'y', 'Y' ], event) || (isKey(['z', 'Z'], event) && isShift(event)));
}
github zeebe-io / zeebe-modeler / client / src / app / KeyboardBindings.js View on Github external
function isPaste(event) {
  return isKey(['v', 'V'], event) && isCommandOrControl(event);
}