-
-
Notifications
You must be signed in to change notification settings - Fork 330
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
The shortcut key is not released after using it #2914
Comments
Hi @gradypark86, I can't reproduce this issue. Furthermore, I spent hundreds of hours working on the key presses implementation, and at this point I'm quite confident that it works correctly. My guest is that there is some software on your machine which is messing up the key events. Something like BTT, Karabineer Elements, or some Logitech software. It could also be the external keyboard that's creating the issue. Could you please quit all software, and use the internal keyboard. Does the issue happen then? Thank you 🙇 |
Thanks for your reply. I just tried quit some possibly relevant software but it has no effect. |
Hi @gradypark86, |
Yes, I tried it on a macbook and a mac mini, with the internal keyboard and an external keyboard. It's all the same. |
Hi, I just installed AltTab on a brand new OS, and the problem still exsit. I set it to opt+tab this time, and it's more clear because the virtual keyboard will change to special characters when holding 'opt' key. Finally, I also tested the system built in cmd+tab, which is normal. Is there any way to record a log or someting about this? Thank you. 2023-10-24.11.06.36.-.Compressed.with.FlexClip.mp4 |
Great news! I just found that AltTab with the version under v6.7.3 is normal. This issue started to appear since v6.7.3. |
v6.7.3 is very old (2020-10-10). I'm surprised you went back in time that much to get rid of this issue. I wouldn't advise running a version from 3 years ago. We improved many aspects significantly since. I was able to reproduce what you show on the video, with the Accessibility Keyboard. I think the Accessibility is bugged. I think AltTab correctly releases the key, but the Accessibility Keyboard fails to update its display. In your video, the first key next to What issue have you encountered? From your original post to the last one, you only show the issue with the Accessibility Keyboard. If I'm correct that there is a bug in Accessibility Keyboard, then you should face no issue in other apps. Thank you |
Hi, thanks for the detailed answer. In normal use, I've mainly found that two programs were affected.
After I switch to Vivaldi and try to select a part of a URL, the mouse cursor truns into the hand shape instead of the 'I' shape, and can only click on the URL, not select it. I think this should be 100% triggered, maybe I will post the video latter. I don't have the mac with me right now.
The reason I use the Accessibility Keyboard is because it visualizes the current keystrokes. I think I will try v6.7.2 for a few days to see if it triggers the above events, and check if Accessibility is bugged. v6.7.2 and v6.7.3 behave differently on the Accessibility Keyboard, maybe some change to v6.7.3 made it happen. After that I will go back to the latest version, which I think is the best way to honor your years of nice work. Thank you very much. |
Thank you for the detailed message~ I think I was partially mistaken. Thinking deeper about the issue, I think this is more accurate:
I thought we absorbed the event on purpose, to not bother the current app under AltTab. But looking the other cases such as clicking with the mouse, I find it inconsistent to do it in some cases and not others. Maybe we should fix this and never absorb the event. I'll think about it deeper. I also need to check if it's doable code-wise, because the keyboard handling code uses undocumented 20 years old API just to achieve a smooth experience. I'll update here later 👍 |
I released the fix 👍 |
From my brief trial, this issue is solved. |
Describe the bug
After I pressing the alt-tab(I set it cmd+tab) to switch windows, the 'cmd' key didn't released.
Because I often trigger some functions that require pressing the cmd key after switching windows(like scaling, but not 100% probability), which I do not press it.
So I open the virtual keyboard to watch the current key status, and find that after switching windows, the 'cmd' key is still highlight.
I try to change the shortcut key to ctrl+tab or opt+tab, then ctrl or opt will not be released.
However, when change the shortcut to double keys + tab, such as cmd+shift+tab, then there is no such problem.
Screenshots / video
2023-10-23.14.53.55.-.Compressed.with.FlexClip.mp4
Steps to reproduce the bug
Just press cmd+alt to switch windows.
Your environment
The text was updated successfully, but these errors were encountered: