MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / onContextMenu

Function onContextMenu

frontend/src/utility-functions/input.ts:205–209  ·  view source on GitHub ↗
(e: MouseEvent)

Source from the content-addressed store, hash-verified

203}
204
205export function onContextMenu(e: MouseEvent) {
206 if (!targetIsTextField(e.target || undefined) && e.target !== textToolInteractiveInputElement) {
207 e.preventDefault();
208 }
209}
210
211export function onPointerLockChange() {
212 inPointerLock = Boolean(window.document.pointerLockElement);

Callers 1

input.tsFile · 0.90

Calls 1

targetIsTextFieldFunction · 0.85

Tested by

no test coverage detected