(sortOption = 'name')
| 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' || |
nothing calls this directly
no test coverage detected