-
-
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
SDL3: IME regressions #28261
Comments
Seems like before ppy/osu-framework#6234 we were able to suppress IME events from emitting SDL key down events and now we're not. @Susko3 any bright ideas? other than scheduling (please god no)? |
This is a timing bug related to windows raw keyboard. Since the events are very low latency, the keydown event is handled before Disabling Best hack I can think of is to add back With ppy/osu-framework#5790 / ppy/osu-framework@6fb7adc we could do it in a smarter way -- check whether the character produced by the key is handled by the textbox. diff --git a/osu.Framework/Graphics/UserInterface/TextBox.cs b/osu.Framework/Graphics/UserInterface/TextBox.cs
index 472272b2d..899ca32f7 100644
--- a/osu.Framework/Graphics/UserInterface/TextBox.cs
+++ b/osu.Framework/Graphics/UserInterface/TextBox.cs
@@ -1143,7 +1143,7 @@ protected override bool OnKeyDown(KeyDownEvent e)
textInputScheduler.Update();
// block on recent text input *after* handling the above keys so those keys can be used during text input.
- return base.OnKeyDown(e) || textInputBlocking;
+ return base.OnKeyDown(e) || textInputBlocking || CanAddCharacter(e.Character);
}
/// <summary> |
I'm all for this but ppy/osu-framework#6229 is a prerequisite for that pull is it not? That has unresolved reviews still. |
The hint is now disabled by default. There were other issues with raw keyboard, so the SDL3 folks decided to disable it. Also, I'm unable to reproduce the original issue, even with envvar SDL_WINDOWS_RAW_KEYBOARD set to 1. |
Should arguably only do the IME part.
Discussed in #28162
Originally posted by cdwcgt May 12, 2024
![image](https://private-user-images.githubusercontent.com/34775378/329853430-ed842066-d13d-4cf1-9c92-18d6dfbf3340.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NDUwMjcsIm5iZiI6MTczOTY0NDcyNywicGF0aCI6Ii8zNDc3NTM3OC8zMjk4NTM0MzAtZWQ4NDIwNjYtZDEzZC00Y2YxLTljOTItMThkNmRmYmYzMzQwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDE4Mzg0N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU4OTllNzM1ZTYyMWQ4MTAxZWFhNzBjZGM0YzBkNjU5NmU1ZGI2OTgwMzNkMjI4MDBkZjk4ZTEzYzA5ODc1ZmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ige9RttGVEZN_EVMPBuO5-nqPSQMEGtPtBbHKgNCxO8)
also for beatmap search
The text was updated successfully, but these errors were encountered: