-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[Bug] Pattern Editor detects CTRL as stuck #2019
Comments
Hey! I've had this issue before too but so far only on Linux. On Windows it seems to work pretty consistently for me. Does it only affect the pattern editor for you or is it the entirety of ImHex? Like other text fields / shortcuts / etc as well? |
Might be something for @paxcut |
Is this reproducible in your computer? Does it happen every time you Alt-TAB in and out of the editor? I tried it on my local build and nothing bad happened. I 've had similar problems but on clion, not on imhex usually pressing ctrl-alt on both left and right sides clears it. Im not sure what causes it though it is not alt-tab |
That has actually never happened for me and I had used CLion too. I reproduced it. I just spammed letters and keys into the pattern editor and it happens. Seems to happen in the entire app, but no other app has that issue when it is acting strange. Seems to be happening at random however, I haven't been able to reproduce it to a 100% (two times) second time as a fluke (I was just writing normally in the pattern editor) I have auto-evaluate enabled. |
Recording.2024-12-20.183446.mp4 |
Im not sure what to make of this. I turned auto evaluate on and proceeded to spam keys and delete them as you do and I can't get it stuck like you show. If i pause the spamming for a second the auto evaluate kicks in and I loose focus to the screen so i just click it and continue to spam and delete keys. Does it only happen when auto evaluate is on? |
I got the bug with auto evaluate being toggled off too. 🤔 |
Yeah I don't think this has anything to do with auto evaluate. Rather with the Shortcut manager or with how ImGui/glfw handles modifiers. I can reproduce it pretty effortlessly on Linux. Not on Windows though |
Okay I managed to reproduce it everywhere now pretty consistently. If you hold down ALT GR first, then hold down SHIFT and then press enter while still holding the two other keys, CTRL gets stuck pretty consistently. I'll see if I can rewrite the code somehow to work around this bug, just figured I'd report my findings back for now |
@PerfectlyFineCode Do you happen to use a German (or similar) keyboard layout as well? Edit: Actually I believe any keyboard layout that maps ALT GR to CTRL + ALT causes the issue. |
Yes, I use the Nordic keyboard layout. |
I believe I managed to fix it. At least I can't reproduce it anymore like I did before. |
I haven't been able to reproduce it yet using the fix: 5af2867 |
Operating System
Windows
What's the issue you encountered?
Sometimes pattern editor thinks CTRL modifier key is pressed so the pattern editor becomes unusable.
How can the issue be reproduced?
ImHex Version
1.35.4 [811214d]
ImHex Build Type
Installation type
MSI
Additional context?
No response
The text was updated successfully, but these errors were encountered: