1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-20 01:19:52 +08:00

Fix pressing Enter on song select with IME active advancing to gameplay instead of confirming choice (#35619)

Closes https://github.com/ppy/osu/issues/35568.
This commit is contained in:
Bartłomiej Dach
2025-11-06 08:06:52 +01:00
committed by GitHub
Unverified
parent 20904de276
commit dbefba57ce
@@ -54,7 +54,13 @@ namespace osu.Game.Graphics.UserInterface
{
case Key.KeypadEnter:
case Key.Enter:
return false;
// even if committing per se is not allowed for this textbox,
// the commit flow is also responsible for terminating any active IME.
// ensure that the Enter press terminates IME correctly
// and is also handled if it needs to be, so that it doesn't leak to some other non-focused drawable and cause breakage.
bool wasImeComposing = ImeCompositionActive;
FinalizeImeComposition(true);
return wasImeComposing;
}
}