This commit is contained in:
Tomas Dvorak
2025-11-14 15:53:12 +01:00
parent f3db65d350
commit c941313fd5
149 changed files with 4366 additions and 12935 deletions
@@ -129,7 +129,7 @@ export default function AdminSearchModal({ isOpen, onClose, onSelectPath }: { is
else if (e.key === 'Enter') {
const chosen = idx >= 0 ? results[idx] : results[0];
if (chosen) onSelect(chosen.path);
} else if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === 'k') {
} else if ((e.ctrlKey || e.metaKey) && String(e.key || '').toLowerCase() === 'k') {
e.preventDefault(); onClose();
} else if (e.key === 'Escape') {
onClose();