MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / hasKeyModifiers

Function hasKeyModifiers

src/common/ui/index.js:162–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160export const getActiveElement = () => document.activeElement;
161/** @param {MouseEvent|KeyboardEvent} e */
162export const hasKeyModifiers = e => e.shiftKey || e.ctrlKey || e.metaKey || e.altKey;
163export const externalEditorInfoUrl =
164 VM_HOME + 'posts/how-to-edit-scripts-with-your-favorite-editor/';
165export const EXTERNAL_LINK_PROPS = {

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected