diff options
Diffstat (limited to 'users/drashna/tap_dances.c')
| -rw-r--r-- | users/drashna/tap_dances.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/users/drashna/tap_dances.c b/users/drashna/tap_dances.c index c9e4b1d0f..346675853 100644 --- a/users/drashna/tap_dances.c +++ b/users/drashna/tap_dances.c | |||
| @@ -38,16 +38,16 @@ qk_tap_dance_action_t tap_dance_actions[] = { | |||
| 38 | 38 | ||
| 39 | // Sends the key press to system, but only if on the Diablo layer | 39 | // Sends the key press to system, but only if on the Diablo layer |
| 40 | void send_diablo_keystroke(uint8_t diablo_key) { | 40 | void send_diablo_keystroke(uint8_t diablo_key) { |
| 41 | if (biton32(layer_state) == _DIABLO) { | 41 | if (IS_LAYER_ON(_DIABLO)) { |
| 42 | switch (diablo_key) { | 42 | switch (diablo_key) { |
| 43 | case 0: | 43 | case 0: |
| 44 | tap(KC_1); break; | 44 | tap_code(KC_1); break; |
| 45 | case 1: | 45 | case 1: |
| 46 | tap(KC_2); break; | 46 | tap_code(KC_2); break; |
| 47 | case 2: | 47 | case 2: |
| 48 | tap(KC_3); break; | 48 | tap_code(KC_3); break; |
| 49 | case 3: | 49 | case 3: |
| 50 | tap(KC_4); break; | 50 | tap_code(KC_4); break; |
| 51 | } | 51 | } |
| 52 | } | 52 | } |
| 53 | } | 53 | } |
