Skip to content

Commit 0539047

Browse files
fauxparkartlugovoy
authored andcommitted
Fix a build warning and tidy up a keymap (qmk#24805)
1 parent ae14219 commit 0539047

File tree

2 files changed

+3
-29
lines changed

2 files changed

+3
-29
lines changed
File renamed without changes.

keyboards/keyprez/bison/keymaps/default/keymap.c

+3-29
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ enum layer_names {
2525
_FN,
2626
};
2727

28-
enum custom_keycodes {
29-
KC_PRVWD = SAFE_RANGE,
30-
KC_NXTWD
31-
};
32-
3328
#define LOWER MO(_LOWER)
3429
#define RAISE MO(_RAISE)
3530
#define FN MO(_FN)
@@ -47,6 +42,9 @@ enum custom_keycodes {
4742
#define KC_COLMK PDF(_COLEMAK)
4843
#define KC_HRM PDF(_HRM)
4944

45+
#define KC_PRVWD LCTL(KC_LEFT)
46+
#define KC_NXTWD LCTL(KC_RGHT)
47+
5048
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
5149
/*
5250
* QWERTY
@@ -186,27 +184,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
186184
_______,_______, _______, _______, _______, _______, _______, _______
187185
),
188186
};
189-
190-
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
191-
switch (keycode) {
192-
case KC_PRVWD:
193-
if (record->event.pressed) {
194-
register_mods(mod_config(MOD_LCTL));
195-
register_code(KC_LEFT);
196-
} else {
197-
unregister_mods(mod_config(MOD_LCTL));
198-
unregister_code(KC_LEFT);
199-
}
200-
break;
201-
case KC_NXTWD:
202-
if (record->event.pressed) {
203-
register_mods(mod_config(MOD_LCTL));
204-
register_code(KC_RIGHT);
205-
} else {
206-
unregister_mods(mod_config(MOD_LCTL));
207-
unregister_code(KC_RIGHT);
208-
}
209-
break;
210-
}
211-
return true;
212-
}

0 commit comments

Comments
 (0)