MCPcopy Create free account
hub / github.com/TechJeeper/Printventory / initializeGrid

Function initializeGrid

renderer.js:16781–16792  ·  view source on GitHub ↗
(sortOption = 'name')

Source from the content-addressed store, hash-verified

16779 // Toggle Multi-Edit: Ctrl+E / Cmd+E
16780 if (mod && (event.key === 'e' || event.key === 'E')) {
16781 event.preventDefault();
16782 const toggleBtn = document.getElementById('edit-mode-toggle');
16783 const enterMultiBtn = document.getElementById('enter-multi-edit-button');
16784 if (enterMultiBtn && detailsVisible) enterMultiBtn.click();
16785 else if (toggleBtn) toggleBtn.click();
16786 return;
16787 }
16788
16789 // Check for Ctrl+A (Windows/Linux) or Cmd+A (Mac)
16790 if (mod && (event.key === 'a' || event.key === 'A')) {
16791 // Don't intercept if user is typing in an input field, textarea, or contenteditable
16792 const activeElement = document.activeElement;
16793 const isInputField = activeElement && (
16794 activeElement.tagName === 'INPUT' ||
16795 activeElement.tagName === 'TEXTAREA' ||

Callers

nothing calls this directly

Calls 1

updateModelCountsFunction · 0.85

Tested by

no test coverage detected