ah- / anne-key

Firmware for Anne Pro Keyboard written in Rust
Apache License 2.0
567 stars 32 forks source link

[Feature] Implementation of QMK's Tap Dance #61

Closed stndrf closed 3 years ago

stndrf commented 6 years ago

It would be nice to have some of the Tap Dance functionality.

When i used it first (formerly known as e.g. double tap action) i felt in love with this feature it basically allows you to give a key more than one 'action' like: When you press and release 'A' just type an 'a', but when you press and hold 'A' you'll get 'Shift' this is called ACTION_TAP_DANCE_DOUBLE in Tap Dance.

You can find more details in the docs.

bburky commented 6 years ago

I'm not sure if this is the same feature, but using another tool, Karabiner, I once double bound caps lock as ctrl and esc. When pressed alone it would send esc, but only when pressed in combination with another key it would send ctrl.

Is that the definition of "hold" that QMK uses? Or is it time based?

WishCow commented 6 years ago

I don't think @r00tbox describes tap dance correctly. Tap dance is when a button has multiple outputs, based on how many times it is pressed, it is not related to holding down the button.

https://jayliu50.github.io/qmk-cheatsheet/ Search for "tap dance".

What @r00tbox is describing is a special modifier function (search for MT(MOD_XXX in the docs above).

I think both features would be a great addition.