MCPcopy Create free account
hub / github.com/bea4dev/ShojiWM / normalizeModifier

Function normalizeModifier

packages/shoji_wm/src/pointer.ts:15–26  ·  view source on GitHub ↗
(modifier: string)

Source from the content-addressed store, hash-verified

13 windowMoveModifier?: string;
14 windowResizeModifier?: string;
15 regions?: RuntimePointerRegion[];
16 appLockIgnored?: boolean;
17 appLockIgnoreModifier?: string;
18}
19
20type RegionEventSource = (listener: PointerRegionListener) => () => void;
21
22let regionEventSource: RegionEventSource | null = null;
23const hotCornerUnsubscribes = new Map<string, () => void>();
24
25/** @internal Connects `bindHotCorner` to `COMPOSITOR.event.onPointerRegion`. */
26export function installPointerRegionEventSource(source: RegionEventSource): void {
27 regionEventSource = source;
28}
29

Callers 1

bindWindowMoveModifierFunction · 0.85

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected