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

Function hidePrompt

src/dialogs/prompt.js:153–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151 if (inputType === "textarea") autosize(input);
152
153 function hidePrompt() {
154 promptDiv.classList.add("hide");
155 restoreTheme();
156 setTimeout(() => {
157 if (promptDiv.isConnected) promptDiv.remove();
158 if (mask.isConnected) mask.remove();
159 }, 300);
160 }
161
162 function hide() {
163 // CodeMirror keymaps are handled differently - no need to restore commands.exec

Callers 1

hideFunction · 0.70

Calls 3

restoreThemeFunction · 0.85
addMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected