-
-
Notifications
You must be signed in to change notification settings - Fork 268
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
Can't type the @ symbol #418
Comments
I want to say that the issue could be less about the keys and more about the mod state... I do know we have support in SDL for alt/shift/etc but I don't know if it would be applicable to this situation - ideally we could get an event that explicitly asks for a paste operation, so that we aren't manually checking keys like this. This is wild speculation on my part though; if there's not a graceful way to get the paste request I'd be okay with adding checks for Alt keys being released. |
I did see a mention of SDL_CLIPBOARDUPDATE elsewhere emscripten-ports/SDL2#125 (comment) |
Now that I think about it, what's the reason for using |
I believe so, yes - that's been there for close to 9 years though, so it's been a while since we've really looked at this portion thoroughly 😅 |
Correction, it's been almost 10 years! |
Oh wow, I've tried following the blame trail, but I didn't know about the archive repo. Also, thanks for the speedy replies. |
@flibitijibibo / @araghon007 You guys might be interested in: pthom/hello_imgui#3 (comment) |
So, I have a relatively weird keyboard layout, where you have to press Ctrl+Alt+V (AltGr+V) to type the @ symbol.
FNA/src/FNAPlatform/SDL2_FNAPlatform.cs
Lines 946 to 952 in 575439a
FNA/src/FNAPlatform/SDL2_FNAPlatform.cs
Lines 961 to 965 in 575439a
I'm not entirely sure how to fix this properly, but it seems checking if Left Alt and Right Alt aren't pressed does the trick. I know Ctrl+Shift+V pastes normally on Windows, so Alt seems to be the only special key that changes the behavior.
The text was updated successfully, but these errors were encountered: