MCPcopy Index your code
hub / github.com/refined-github/refined-github / handleClick

Function handleClick

source/features/batch-mark-files-as-viewed.tsx:84–96  ·  view source on GitHub ↗
(event: DelegateEvent<MouseEvent, HTMLElement>)

Source from the content-addressed store, hash-verified

82}
83
84function handleClick(event: DelegateEvent<MouseEvent, HTMLElement>): void {
85 if (!event.isTrusted) {
86 return;
87 }
88
89 if (event.altKey) {
90 onAltClick(event);
91 } else if (event.shiftKey) {
92 batchToggle(event);
93 }
94
95 remember(event);
96}
97
98function init(signal: AbortSignal): void {
99 delegate(viewedToggleSelector, 'click', handleClick, {signal});

Callers

nothing calls this directly

Calls 3

onAltClickFunction · 0.85
batchToggleFunction · 0.85
rememberFunction · 0.85

Tested by

no test coverage detected