Skip to content

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

Open
Danchi299 wants to merge 1 commit intocharlesmaddock:mainfrom
Danchi299:Chat-Enter-Fix
Open

Fixes chat re-opening on Sending Message when bound to Enter#2
Danchi299 wants to merge 1 commit intocharlesmaddock:mainfrom
Danchi299:Chat-Enter-Fix

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