MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / setNativeContextMenuDisabled

Function setNativeContextMenuDisabled

src/lib/editorManager.js:148–159  ·  view source on GitHub ↗
(disabled)

Source from the content-addressed store, hash-verified

146 }
147
148 const setNativeContextMenuDisabled = (disabled) => {
149 const value = !!disabled;
150 if (nativeContextMenuDisabled === value) return;
151 nativeContextMenuDisabled = value;
152 const api = globalThis.system?.setNativeContextMenuDisabled;
153 if (typeof api !== "function") return;
154 try {
155 api.call(globalThis.system, value);
156 } catch (error) {
157 console.warn("Failed to update native context menu state", error);
158 }
159 };
160
161 const { scrollbarSize, scrollbarHeight } = appSettings.value;
162 const events = {

Callers 1

setupEditorFunction · 0.85

Calls 1

callMethod · 0.80

Tested by

no test coverage detected