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

Fix editor not saving when textbox is focused during exit procedure #26717

Merged
merged 9 commits into from
May 24, 2024

Conversation

peppy
Copy link
Member

@peppy peppy commented Jan 26, 2024

Closes #26324.

Comment on lines 722 to 726
// Before exiting, trigger a focus loss.
//
// This is important to ensure that if the user is still editing a textbox, it will commit
// (and potentially block the exit procedure for save).
GetContainingInputManager().TriggerFocusContention(this);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm having a hard time accepting this workaround all the way up here in Editor. Can we at least add a virtual method like EditorScreen.OnExiting() and move this there? That way at least the bodge would be isolated to the screen.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I've applied this unilaterally in 807d982 to necro this.

bdach
bdach previously approved these changes May 24, 2024
@bdach bdach enabled auto-merge May 24, 2024 08:38
@bdach bdach disabled auto-merge May 24, 2024 09:10
@bdach bdach merged commit 80b7653 into ppy:master May 24, 2024
10 of 16 checks passed
@peppy peppy deleted the fix-editor-didnt-save branch May 24, 2024 12:28
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.

Saving any metadata field requires clicking off the box
3 participants