-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Conversation
osu.Game.Tests/Visual/Navigation/TestSceneBeatmapEditorNavigation.cs
Outdated
Show resolved
Hide resolved
osu.Game/Screens/Edit/Editor.cs
Outdated
// 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); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Closes #26324.