Skip to content

Commit

Permalink
move C-x to top
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanwang-wf committed Jul 9, 2024
1 parent ace50e1 commit f4cc87d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions qmk/yuanw/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,15 @@ static void process_altrep3(uint16_t keycode, uint8_t mods) {
}

bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {

switch (keycode) {
case C_X:
if (record->event.pressed) {
tap_code16(LCTL(KC_X));
return false;
}
break;

case ALTREP2:
if (record->event.pressed) {
process_altrep2(get_last_keycode(), get_last_mods());
Expand Down Expand Up @@ -440,12 +448,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
}
return false;

case C_X:
if (record->event.pressed) {
tap_code16(LCTL(KC_X));
return false;
}
return true;
}
return true; // Process all other keycodes normally
}

0 comments on commit f4cc87d

Please sign in to comment.