Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
qmk-bot committed Jan 10, 2025
2 parents 9d2b416 + d90b6e4 commit 9332439
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 29 deletions.
File renamed without changes.
32 changes: 3 additions & 29 deletions keyboards/keyprez/bison/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ enum layer_names {
_FN,
};

enum custom_keycodes {
KC_PRVWD = SAFE_RANGE,
KC_NXTWD
};

#define LOWER MO(_LOWER)
#define RAISE MO(_RAISE)
#define FN MO(_FN)
Expand All @@ -47,6 +42,9 @@ enum custom_keycodes {
#define KC_COLMK PDF(_COLEMAK)
#define KC_HRM PDF(_HRM)

#define KC_PRVWD LCTL(KC_LEFT)
#define KC_NXTWD LCTL(KC_RGHT)

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
* QWERTY
Expand Down Expand Up @@ -186,27 +184,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______,_______, _______, _______, _______, _______, _______, _______
),
};

bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case KC_PRVWD:
if (record->event.pressed) {
register_mods(mod_config(MOD_LCTL));
register_code(KC_LEFT);
} else {
unregister_mods(mod_config(MOD_LCTL));
unregister_code(KC_LEFT);
}
break;
case KC_NXTWD:
if (record->event.pressed) {
register_mods(mod_config(MOD_LCTL));
register_code(KC_RIGHT);
} else {
unregister_mods(mod_config(MOD_LCTL));
unregister_code(KC_RIGHT);
}
break;
}
return true;
}

0 comments on commit 9332439

Please sign in to comment.