MCPcopy Index your code
hub / github.com/stemdeckapp/stemdeck / commit

Function commit

static/js/sections.js:303–308  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

301 input.select();
302
303 const commit = () => {
304 const n = input.value.trim();
305 if (n) section.name = n;
306 _render();
307 _scheduleSave();
308 };
309 input.addEventListener("blur", commit, { once: true });
310 input.addEventListener("keydown", (e) => {
311 if (e.key === "Enter") { e.preventDefault(); input.blur(); }

Callers

nothing calls this directly

Calls 2

_renderFunction · 0.85
_scheduleSaveFunction · 0.85

Tested by

no test coverage detected