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

German keyboard adds a ^-sign #13

Open
MikeFrom opened this issue Jul 26, 2024 · 5 comments
Open

German keyboard adds a ^-sign #13

MikeFrom opened this issue Jul 26, 2024 · 5 comments

Comments

@MikeFrom
Copy link

Hi jitspoe,

nice console. On my German keyboard the ~-key is a ^-key. When I open the console, in the console line a ^-sign is added, this has to be removed always manually.

German_keyboard_trouble

Is there a fix?

Thanks

Mike

@jitspoe
Copy link
Owner

jitspoe commented Aug 5, 2024

Thanks for the report. I'll look into it!

@jitspoe
Copy link
Owner

jitspoe commented Aug 7, 2024

Hmm, I'm not getting that behavior. For me, I have to type ^ twice, even when typing normally. I press it once, and nothing happens. I press it again, and two ^^'s show up (in a normal text box). In-game, I just have to tap it twice to open or close the console, but I don't get a ^ character showing up. There's something special about the way the OS handles that key. What OS are you on, and what exact keyboard language are you using? If the OS is reporting 2 key presses to Godot, I'm not sure how best to deal with that. 🤔

Edit: Oh, I see the problem. The ^ doesn't show up until you start typing. That makes it even harder to work around, as I can't just ignore input for 1 frame or something. How is this even supposed to behave under normal circumstances? This is so weird.

@CatzHoekk
Copy link

The main annoyance is that you have to press the key twice to toggle the console.

People that are impacted are used to deal with the ^ appearing, source and quake console also don't try to solve that part of the issue. As long as you press the physical key the console should toggle, no matter what state the deadkey is in.

@jitspoe
Copy link
Owner

jitspoe commented Oct 10, 2024

Right. The problem is the Godot engine itself doesn't send the pressed event until the key is pressed a second time. I don't think I can fix that without modifying the engine. There's an issue about it on the main Godot repo here: godotengine/godot#94517

If you have any idea how to fix it, let me know!

@graugraugrau
Copy link

I had a quick look, cause I was not able to reproduce the problem on my Linux/Gnome machine. I tried it on Windows and can confirm the issue, that is described here. Just want to point out that it's also OS specific.

In addition I also noticed another thing that might be only slightly related. On Windows a double tap of Circumflex closes the console. On Linux the console is only closable with Escape, as soon as the console is visible. So there might also be a mismatch here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants