From f4cc87dc945abe27e5e3e714d336d8df6ea81c05 Mon Sep 17 00:00:00 2001 From: yuanwang Date: Mon, 8 Jul 2024 18:53:47 -0600 Subject: [PATCH] move C-x to top --- qmk/yuanw/keymap.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/qmk/yuanw/keymap.c b/qmk/yuanw/keymap.c index 2ea9bb5..3c8648a 100644 --- a/qmk/yuanw/keymap.c +++ b/qmk/yuanw/keymap.c @@ -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()); @@ -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 }