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

Fixes chat re-opening on Sending Message when bound to Enter #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Danchi299
Copy link

@Danchi299 Danchi299 commented Aug 12, 2024

What does this do?

Currently binding chat to Enter causes a problem: When you send a message with Enter it instantly re-opens chat which forces you to close it by double tapping Escape
This PR adds few extra checks to prevent this from happening

How does it do so?

Using return in if blocks to not trigger chat opening and closing on the same update, checking for _focused as extra step

Why should this be merged?

I am fairly sure it is a bug, and as I remember wise person once said:

"Bug Bad"
-Sensei and Bug Exterminator, Danchi.

Testing

Run the game, entered training mode, sent a bunch of messages using Enter.

Changelog:

Fix: Binding Chat to Enter will now allow you to close chat

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.

1 participant