Generalize Tap Dance Layer functions (#6629)

* made tapdance dual_role general

* updated original dual_role functionality

* added toggling layer example

* Fix dual role and add alias

* Update docs about new layer tap dances

* Fix up based on feedback
This commit is contained in:
Drashna Jaelre 2019-09-21 11:22:27 -07:00 committed by GitHub
parent 63a0b1241d
commit f069e9fc09
Failed to generate hash of commit
4 changed files with 20 additions and 8 deletions

View file

@ -71,7 +71,7 @@ void qk_tap_dance_dual_role_finished(qk_tap_dance_state_t *state, void *user_dat
if (state->count == 1) {
register_code16(pair->kc);
} else if (state->count == 2) {
layer_move(pair->layer);
pair->layer_function(pair->layer);
}
}