Skip to content

Conversation

shoummu1
Copy link
Collaborator

📌Summary

This PR adds a global keyboard shortcut to the admin panel UI, allowing users to close the top-most visible modal dialog by pressing the Escape key. This improves accessibility and user experience, especially for dialogs like the Test Tool.

🔗 Related Issues

Closes #491

💡 Fix Description

Added a global event listener for the Escape key in admin.js. When Escape is pressed, the top-most active modal is closed using the existing modal management logic. No changes to modal structure or styling; purely an accessibility and usability enhancement

✅ Validation

  • Opened the Test Tool and other modals in the admin panel
  • Pressed Escape to close the modal; verified that the modal closes as expected
  • Confirmed no regression in modal behavior for mouse interactions

@shoummu1 shoummu1 requested a review from madhav165 August 21, 2025 09:18
@shoummu1 shoummu1 marked this pull request as ready for review August 21, 2025 09:24
@shoummu1 shoummu1 requested a review from crivetimihai as a code owner August 21, 2025 09:24
@crivetimihai crivetimihai merged commit e7384e0 into main Aug 21, 2025
37 checks passed
@crivetimihai crivetimihai deleted the add-ui-shortcut branch August 21, 2025 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: UI Keyboard shortcuts
2 participants