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

[ProofOfConcept] AutoMouseKeys layer switching #1080

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

wolfwood
Copy link
Contributor

Describe your changes. Use imperative present tense.

when RelAxis x or y events occur, a timestamp is updated and if the timestamp was previously None, an F24 key Press event is injected. If a non-RelAxis event occurs more than a timeout value (750 ms right now) since the last timestamp update, an F24 key Release event is injected prior to processing the event and the timestamp is reset to None.

the expectation is that the user will map F24 to a layer-while-held action to switch to a mouse keys layer.

in a finalized version, the timeout and the key event would be configurable as part of a feature toggle.

Checklist

  • Add documentation to docs/config.adoc
    • Yes or N/A
  • Add example and basic docs to cfg_samples/kanata.kbd
    • Yes or N/A
  • Update error messages
    • Yes or N/A
  • Added tests, or did manual testing
    • Yes

@jtroo jtroo force-pushed the main branch 2 times, most recently from ba21f86 to 2a84fc3 Compare June 22, 2024 04:49
@jtroo jtroo linked an issue Sep 15, 2024 that may be closed by this pull request
@jtroo jtroo marked this pull request as draft September 15, 2024 04:35
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.

Feature request: Auto Mouse Keys layer
1 participant