Skip to content

Commit

Permalink
Changing palm keys
Browse files Browse the repository at this point in the history
Modified tap dance keys; adjusted tapping term

Updated tap dances for brackets, comma, k

Updated tap keys

Fixes for windows layouts; added delete previous word (win) macro

Fixes for win layers

Fixes for K-key tapping combo
  • Loading branch information
Alexey Danilov committed Sep 6, 2018
1 parent d39705f commit dab1602
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions keyboards/kinesis/keymaps/themoon/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ void k_finished (qk_tap_dance_state_t *state, void *user_data) {
switch (k_tap_state.state) {
case SINGLE_TAP: register_code(KC_K); break;
case SINGLE_HOLD: register_code(KC_LSFT); register_code(KC_K); unregister_code(KC_K); break;
case DOUBLE_SINGLE_TAP: register_code(KC_K); unregister_code(KC_K); register_code(KC_K); break;
default: register_code(KC_LCTL); register_code(KC_SPC); unregister_code(KC_SPC); break;
}
}
Expand All @@ -235,7 +234,6 @@ void k_reset (qk_tap_dance_state_t *state, void *user_data) {
switch (k_tap_state.state) {
case SINGLE_TAP: unregister_code(KC_K); break;
case SINGLE_HOLD: unregister_code(KC_LSFT); break;
case DOUBLE_SINGLE_TAP: unregister_code(KC_K); break;
default: unregister_code(KC_LCTL); break;
}
k_tap_state.state = 0;
Expand Down Expand Up @@ -1067,8 +1065,7 @@ uint32_t layer_state_set_user(uint32_t state) {

// common
case _ALT:
register_code(KC_LALT); // in windows single press of LALT focuses on menu; so instead of creating new layer
// let's just sent RALT instead of LALT in all combinations
register_code(KC_LALT);
break;
case _PALM:
register_code(KC_LSFT);
Expand All @@ -1084,4 +1081,4 @@ uint32_t layer_state_set_user(uint32_t state) {
break;
}
return state;
}
}

0 comments on commit dab1602

Please sign in to comment.