MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / getModifiers

Function getModifiers

lib/matplotlib/backends/web_backend/js/mpl.js:629–644  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

627};
628
629function getModifiers(event) {
630 var mods = [];
631 if (event.ctrlKey) {
632 mods.push('ctrl');
633 }
634 if (event.altKey) {
635 mods.push('alt');
636 }
637 if (event.shiftKey) {
638 mods.push('shift');
639 }
640 if (event.metaKey) {
641 mods.push('meta');
642 }
643 return mods;
644}
645
646/*
647 * return a copy of an object with only non-object keys

Callers 1

mpl.jsFile · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…