rf desafios+soluciones

This commit is contained in:
2026-10-18 01:41:02 -03:00
parent 03e9ee401b
commit b15c3e0119
7 changed files with 190 additions and 74 deletions
+8
View File
@@ -238,6 +238,14 @@ function initModals() {
const modalId = trigger.getAttribute('data-open-modal');
openModal(modalId);
});
// Soporte de teclado para tarjetas con role="button"
trigger.addEventListener('keydown', (e) => {
if (e.key === 'Enter' || e.key === ' ' || e.key === 'Spacebar') {
e.preventDefault();
openModal(trigger.getAttribute('data-open-modal'));
}
});
});
}