Added handy switching for RShift and RCtrl
This commit is contained in:
parent
5a7330dde4
commit
e6ad104bd8
1 changed files with 5 additions and 11 deletions
|
|
@ -34,8 +34,8 @@ static const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
// right hand
|
// right hand
|
||||||
QUOT,6, 7, 8, 9, 0, EQL,
|
QUOT,6, 7, 8, 9, 0, EQL,
|
||||||
FN3, Y, U, I, O, P, LBRC,
|
FN3, Y, U, I, O, P, LBRC,
|
||||||
FN14,J, K, L, SCLN,MINS,
|
FN16,J, K, L, SCLN,FN14,
|
||||||
FN4, N, M, COMM,DOT, SLSH,RBRC,
|
FN4, N, M, COMM,DOT, SLSH,FN15,
|
||||||
LEFT,UP, DOWN,RGHT,FN4,
|
LEFT,UP, DOWN,RGHT,FN4,
|
||||||
PGUP,DEL,
|
PGUP,DEL,
|
||||||
PGDN,
|
PGDN,
|
||||||
|
|
@ -218,12 +218,10 @@ static const uint16_t PROGMEM fn_actions[] = {
|
||||||
ACTION_MODS_TAP_KEY(MOD_RALT, KC_INS), // FN11 = RAlt with tap Ins
|
ACTION_MODS_TAP_KEY(MOD_RALT, KC_INS), // FN11 = RAlt with tap Ins
|
||||||
ACTION_MODS_TAP_KEY(MOD_RSFT, KC_ENT), // FN12 = RShift with tap Enter
|
ACTION_MODS_TAP_KEY(MOD_RSFT, KC_ENT), // FN12 = RShift with tap Enter
|
||||||
ACTION_MODS_TAP_KEY(MOD_RCTL, KC_SPC), // FN13 = RCtrl with tap Space
|
ACTION_MODS_TAP_KEY(MOD_RCTL, KC_SPC), // FN13 = RCtrl with tap Space
|
||||||
|
ACTION_MODS_TAP_KEY(MOD_RSFT, KC_MINS), // FN14 = RShift with tap Enter
|
||||||
|
ACTION_MODS_TAP_KEY(MOD_RCTL, KC_RBRC), // FN15 = RCtrl with tap Space
|
||||||
|
|
||||||
ACTION_LAYER_TAP_KEY(2, KC_H), // FN14 = L2 symbols on J key, to use with Mouse keys
|
ACTION_LAYER_TAP_KEY(2, KC_H), // FN16 = L2 symbols on J key, to use with Mouse keys
|
||||||
|
|
||||||
/*
|
|
||||||
ACTION_LAYER_TAP_KEY(1, KC_ENT), // FN5 = L1 symbols
|
|
||||||
*/
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void action_function(keyrecord_t *event, uint8_t id, uint8_t opt)
|
void action_function(keyrecord_t *event, uint8_t id, uint8_t opt)
|
||||||
|
|
@ -232,15 +230,11 @@ void action_function(keyrecord_t *event, uint8_t id, uint8_t opt)
|
||||||
print("id = "); phex(id); print("\n");
|
print("id = "); phex(id); print("\n");
|
||||||
print("opt = "); phex(opt); print("\n");
|
print("opt = "); phex(opt); print("\n");
|
||||||
if (id == TEENSY_KEY) {
|
if (id == TEENSY_KEY) {
|
||||||
/*
|
|
||||||
* this won't work, idk why
|
|
||||||
*/
|
|
||||||
clear_keyboard();
|
clear_keyboard();
|
||||||
print("\n\nJump to bootloader... ");
|
print("\n\nJump to bootloader... ");
|
||||||
_delay_ms(250);
|
_delay_ms(250);
|
||||||
bootloader_jump(); // should not return
|
bootloader_jump(); // should not return
|
||||||
print("not supported.\n");
|
print("not supported.\n");
|
||||||
/**/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue