-
Notifications
You must be signed in to change notification settings - Fork 138
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: key repeat for output chords using arrow keys does not work #667
Comments
This seems like a bug rather than a feature request, this use case is intended to work today. If you could, can you prepare a minimal and complete configuration that reproduces the issue, with logs using the --debug flag from doing the testing? |
Yes, of course. Here's the minimal config and the logs:
I tried with a more minimal config: log: kanata3.log In this reproduction of the bug, first, I tapped Perhaps it's worth mentioning that, first, I remapped my keyboard layout using the "Windows registry method", and second, I use an unusual/unconventional keyboard layout, it's a variation of a variation of Colemak, it's a variation of Colemak-DH, which is a variation of the Colemak keyboard layout. I should also mention that I do not use the Interception driver, and that |
C-S-down
Looks like the issue is related to a specific Windows-LLHOOK behaviour where the shift key is injected by Windows when pressing arrow keys with a certain numlock state. The key repeat issue started happening with this commit:
It's hard to say off the top of my head what the best fix for this would be, so I'll defer on it for now. But here are some workarounds:
|
I think this is fixed by winiov2 |
Yes, thanks, I just tested it by compiling with |
Is your feature request related to a problem? Please describe.
For keys bound to character keys, if you hold down the key, it repeats, e.g. if I hold
e
, it repeats like thiseeeeeeeeeeeeeeee
, this is also the case for any simple key-to-key mapping e.g. arrow keys.This feature is needed to enable the repeat of motions like e.g. the visual selection of next character/line for the visual mode of the vim emulation layer I mentioned in an issue I opened previously (#648)
Here's the configuration for the visual mode layer:
With this configuration, if you hold down
j
(bound toShift
+↓
), only one line is selected and it does not keep on selecting down lines for as long as you hold the key, because repeat does not work for keys bound to modifier combos (aka shortcuts).Describe the solution you'd like.
A way to enable repeat for keys bound to shortcuts, I don't know how the configuration syntax for this should look.
Describe alternatives you've considered.
I looked at all the available actions in config.adoc, but I couldn't find a way to configure this. the closest thing I found to the behavior I describe is
(macro-repeat-release-cancel S-down 100)
, but this does not behave like key repeat, you can overshoot if you hold for too long, and the first press of the action does not take more than the later/repeat presses, all the presses (including the first) are pressed at the same frequency/rate.Additional context
No response
The text was updated successfully, but these errors were encountered: