-
Notifications
You must be signed in to change notification settings - Fork 160
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] Holding down command and then hitting a sequence of keys, doesn't trigger Command+X keys after first #201
Comments
Hi @natew, I'm not sure why you are seeing this on pre7. If you were using pre8, I'd guess it was likely a regression introduced by trying to address #183 or #177. The first step would be to upgrade to v2.0.0-pre8 and see if it fixes it (I don't think it will). If you want to take a stab at tracing the issue, I suggest you enable verbose logging and pay attention to the configure({logLevel: 'verbose'}); An array of key combinations is maintained - it's the
HotKeys (F0📕-E6❤️-C0🔺-P0🔺:) Key history: [
{
"keys": { // 1st combination: 'a'
"a": [
[ // Previous state
1, // Seen keydown
1, // Seen keypress
0 // Not seen keyup
],
[ // Current state
1, // Seen keydown
1, // Seen keypress
1 // Seen keyup
]
]
},
"ids": [
"a"
],
"keyAliases": {}
},
{
"keys": { // 2nd combination: 'b'
"b": [
[
1,
1,
0
],
[
1,
1,
1
]
]
},
"ids": [
"b"
],
"keyAliases": {}
}
]. The Once you get familiar with the logs, you will know more about why it's failing. The GlobalKeyEventStrategy and its parent AbstractKeyEventStrategy are the relevant files. Start with the Let me know how you get on. Here to help. |
Any chance you'd be open to consult on this for a short term? Would be really helpful for our team, let me know. I don't see your email anywhere public, feel free to email on the one in my profile. |
@natew, Sure, I'll do what I can. I've sent you an email. |
Hey @natew, I have been looking into this and I was wondering if the example above are the actual key combinations you're binding to, or if they are for demonstration, only. When I press If you are using Just trying to make sure I'm solving the right problem. Thanks. |
Ah yea this is in an electron app. I can confirm even with I tried with ctrl+1, etc and it does work properly! So seems to be just a command thing. |
Thanks for your further information, @natew. It helped me arrive at what I believe is the best (but not perfect) solution in #207. Please see #207 for a description of the underlying issue if you're interested. Otherwise, the next release which I'm putting together should restore your |
Should now be available in v2.0.0-pre9. |
Describe the bug
I have roughly this:
Expected behavior
=> 1
=> 2
I don't see
2
being logged in pre7.Platform (please complete the following information):
Are you willing and able to create a PR request to fix this issue?
If you point me roughly at the area!
The text was updated successfully, but these errors were encountered: