claude-code-marketplace 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/app.js +11 -1
package/package.json
CHANGED
package/public/app.js
CHANGED
|
@@ -123,6 +123,15 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
|
123
123
|
updateThemeColor(savedTheme !== 'dark');
|
|
124
124
|
|
|
125
125
|
document.addEventListener('keydown', handleKeydown);
|
|
126
|
+
|
|
127
|
+
document.getElementById('treeContainer').addEventListener('click', (e) => {
|
|
128
|
+
const row = e.target.closest('.tree-row');
|
|
129
|
+
if (!row?.dataset.rowId) return;
|
|
130
|
+
const rowId = row.dataset.rowId;
|
|
131
|
+
const rows = getVisibleRows();
|
|
132
|
+
const idx = rows.findIndex((r) => r.dataset.rowId === rowId);
|
|
133
|
+
if (idx >= 0) setFocusedRow(idx, rows);
|
|
134
|
+
});
|
|
126
135
|
});
|
|
127
136
|
|
|
128
137
|
function syncHljsTheme() {
|
|
@@ -1157,7 +1166,8 @@ function handleKeydown(e) {
|
|
|
1157
1166
|
}
|
|
1158
1167
|
return;
|
|
1159
1168
|
}
|
|
1160
|
-
if ((tag === 'BUTTON' || tag === 'A') && (e.key === 'Enter' || e.key === ' '))
|
|
1169
|
+
if ((tag === 'BUTTON' || tag === 'A') && (e.key === 'Enter' || e.key === ' ') && !e.target.closest('#treeContainer'))
|
|
1170
|
+
return;
|
|
1161
1171
|
|
|
1162
1172
|
const openModal = document.querySelector('.modal-overlay.open');
|
|
1163
1173
|
if (openModal) {
|