Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allows some events from modal #69

Merged
merged 4 commits into from
Jan 24, 2025
Merged

allows some events from modal #69

merged 4 commits into from
Jan 24, 2025

Conversation

Kashargul
Copy link
Contributor

About the PR

Allows us to forward the escape and enter events from modal windows. This will allow for example text inputs used within a modal to be confirmed with enter or close with escape instead of needing to press any button.

Why's this needed?

We've quite a few modal inputs in use, where input fields are generated dynamically.

@tgstation-ci
Copy link

tgstation-ci bot commented Jan 24, 2025

Thank you for contributing to tgui-core! The workflow 'Chromatic Security' requires repository secrets and will not run without approval. Maintainers can add the CI Cleared label to allow it to run. Note that any changes to chromaitc-security.yml and chromatic.yml will not be reflected.

Copy link
Contributor

@AyIong AyIong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look's good

lib/components/Modal.tsx Outdated Show resolved Hide resolved
@jlsnow301
Copy link
Member

i'm not sure what's going on with chromatic atp

@jlsnow301 jlsnow301 merged commit ed767c8 into tgstation:main Jan 24, 2025
4 of 7 checks passed
@Kashargul Kashargul deleted the modal branch January 24, 2025 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants