precondition / precondition.github.io

Personal Weblog with tools and guides for QMK keyboards. Home of the home row mods guide
https://precondition.github.io
MIT License
45 stars 8 forks source link

Improve non-basic mod-tap example #3

Closed dhong44 closed 3 years ago

dhong44 commented 3 years ago

The example for non-basic mod-taps works but will only ever send the non-basic key press once. Usually this is fine but if you don't have TAPPING_FORCE_HOLD on, then double tapping should send the non-basic key multiple times. Registering the code solves this.

dhong44 commented 3 years ago

Sorry I was wrong this doesn't actually work. I'm not sure of an easy way to fix this 😞

precondition commented 3 years ago

The double tap and hold behaviour is definitely not a trivial behaviour to implement and I generally recommend to enable TAPPING_FORCE_HOLD anyways so I kept it simple with tap_code.