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

Add ’tap-hold-except-keys’ functionality #656

Merged
merged 7 commits into from
Dec 12, 2023
Merged

Add ’tap-hold-except-keys’ functionality #656

merged 7 commits into from
Dec 12, 2023

Conversation

cyxae
Copy link
Contributor

@cyxae cyxae commented Dec 8, 2023

Describe your changes. Use imperative present tense.

tap-hold-except-keys behaves like a tap-hold key except for a list of physical keys which will always trigger a tap.

This helps avoid typing fast errors with homerow mods for example.

More details here: #128 (comment)

Checklist

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

docs/config.adoc Outdated
This variant takes a 5th parameter which is a list of keys
that always trigger a tap
when they are pressed while the `tap-hold-except-keys` action is waiting.
Otherwise this behaves as `tap-hold`.
Copy link
Owner

@jtroo jtroo Dec 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise this behaves as tap-hold.

Not having tested the changes, and based on my understanding from reading comments and code, this looks inaccurate.

tap-hold-except-keys does not ever output a key if no other action has happened right? E.g. another key press, or releasing the key itself.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed I noticed that when I wanted to Ctrl+scroll…

parser/src/cfg/mod.rs Outdated Show resolved Hide resolved
keyberon/src/action.rs Show resolved Hide resolved
@jtroo jtroo force-pushed the main branch 7 times, most recently from d10943b to 6fbffdd Compare December 11, 2023 00:57
@jtroo jtroo merged commit 375b624 into jtroo:main Dec 12, 2023
4 checks passed
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.

3 participants