mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-04 10:42:57 +00:00
dev day #92
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user