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

Feature/win key repeat #541

Merged
merged 12 commits into from
May 19, 2022
Merged

Feature/win key repeat #541

merged 12 commits into from
May 19, 2022

Conversation

david-janssen
Copy link
Collaborator

I think I have this working now. The way it's currently implemented, you may optionally provide 2 arguments to send-event-sink (it's optional whether you provide them, but when you provide them you must provide 2) that determine the delay and the rate of the key repeat.
delay - How many ms before a key starts repeating
rate - How many ms between each repeat event

I only have Windows running in a VirtualBox, so my testing setup is very limited. Let's try to get some people to try it and if nothing blows up we merge this in?

@slotThe
Copy link
Member

slotThe commented May 18, 2022

Just pinging known Windows users: @6gk @whitbur @MaxGyver83

@eepykate
Copy link
Contributor

eepykate commented May 18, 2022 via email

@MaxGyver83
Copy link
Contributor

I have tested it:
It works! Awesome! I suppose it's the expected behaviour that it does not work for tap-hold-next-release keys.

(An undesired side effect of #252: When I press and hold the A key which is a tap-hold-next-release+layer-toggle layer 3 key, the according layer 3 key is being repeated.)

@eepykate
Copy link
Contributor

Works really well at first try - thank you!

The easy method of changing the repeat rate is much appreciated too.

@david-janssen david-janssen merged commit 83d7f5b into master May 19, 2022
@david-janssen david-janssen deleted the feature/win-key-repeat branch May 19, 2022 13:14
@david-janssen
Copy link
Collaborator Author

Very good, all automated tests are passing, all actual users seem pleased. Trigger pulled.

roubaobaozi pushed a commit to roubaobaozi/kmonad that referenced this pull request Apr 16, 2023
* Bump resolver to match available GHC in nix

* First attempt at key-repeat in windows

* Hooking up the parsers and preparing testing

* Changed micro to milli-seconds

* First attempt at key-repeat in windows

* Hooking up the parsers and preparing testing

* Changed micro to milli-seconds

* Fixed bug

* Modified testing values

* Fixed error in parser

* Made the test a little bit more sane
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

Successfully merging this pull request may close these issues.

None yet

4 participants