summaryrefslogtreecommitdiff
path: root/users/edvorakjp
diff options
context:
space:
mode:
authorepaew <epaew@users.noreply.github.com>2018-12-04 01:00:00 +0900
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>2018-12-03 08:00:00 -0800
commitfe982caf5d69fdb2d6f1dec123a630df11a98282 (patch)
tree61e35e983a228ff60fc619570b04553ba0dbe289 /users/edvorakjp
parent5d47231f2a9353645aab07e14c1de21f00b7fc2f (diff)
Add edvorakjp kepmap for crkbd (#4537)
* edvorakjp layout for crkbd * bugfix of edvorakjp QMK cannot send keycode that doesn't exists on new layer.
Diffstat (limited to 'users/edvorakjp')
-rw-r--r--users/edvorakjp/edvorakjp_process_record.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/users/edvorakjp/edvorakjp_process_record.c b/users/edvorakjp/edvorakjp_process_record.c
index dc70522b47..2dcdab2a25 100644
--- a/users/edvorakjp/edvorakjp_process_record.c
+++ b/users/edvorakjp/edvorakjp_process_record.c
@@ -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