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

Function clickHandler

src/sidebarApps/files/index.js:59–69  ·  view source on GitHub ↗

* Click handler for files app * @param {MouseEvent} e * @returns

(e)

Source from the content-addressed store, hash-verified

57 * @returns
58 */
59function clickHandler(e) {
60 if (!container.children.length) {
61 acode.exec("open-folder");
62 return;
63 }
64
65 const { target } = e;
66 if (target.matches(".files>.list>.tile")) {
67 fixHeight(target.parentElement);
68 }
69}
70
71/**
72 * Update list height

Callers

nothing calls this directly

Calls 3

fixHeightFunction · 0.85
matchesMethod · 0.80
execMethod · 0.65

Tested by

no test coverage detected