1
0
Fork 0

Add edvorakjp kepmap for crkbd (#4537)

* edvorakjp layout for crkbd

* bugfix of edvorakjp

QMK cannot send keycode that doesn't exists on new layer.
This commit is contained in:
epaew 2018-12-04 01:00:00 +09:00 committed by MechMerlin
parent 5d47231f2a
commit fe982caf5d
7 changed files with 354 additions and 5 deletions

View file

@ -37,11 +37,7 @@ bool process_record_edvorakjp_ext(uint16_t keycode, keyrecord_t *record) {
}
return true;
// left hand and right hand's right side
case KC_X:
case KC_C:
case KC_V:
case KC_Z:
// left hand up and right hand's right side
case KC_Y:
case KC_P:
case KC_W:
@ -54,6 +50,18 @@ bool process_record_edvorakjp_ext(uint16_t keycode, keyrecord_t *record) {
layer_on(_EDVORAKJ2);
}
return true;
// left hand down
// If return true, QMK sends keycode in new layer,
// but these keys are only available in old layer.
case KC_X:
case KC_C:
case KC_V:
case KC_Z:
if (record->event.pressed) {
layer_on(_EDVORAKJ2);
tap_code(keycode);
}
return false;
}
// vowel keys, symbol keys and modifier keys