Skip to content

Commit

Permalink
Replace custom RCTRL implementation with built-in LM
Browse files Browse the repository at this point in the history
Caveat: sends LCtrl instead of RCtrl
  • Loading branch information
vomindoraan committed May 12, 2020
1 parent 361ac2f commit e08c2f4
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions keyboards/kbdfans/kbd6x/keymaps/konstantin/keymap.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#include QMK_KEYBOARD_H
#include "konstantin.h"

enum keycodes_keymap {
RCTRL = RANGE_KEYMAP,
};
#define RCTRL LM(L_RCTRL, MOD_LCTL)

enum layers_keymap {
L_RCTRL = L_RANGE_KEYMAP,
Expand All @@ -29,17 +27,6 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
return false;
}
break;

// Combined RCtrl and layer
case RCTRL:
if (record->event.pressed) {
register_code(KC_RCTRL);
layer_on(L_RCTRL);
} else {
unregister_code(KC_RCTRL);
layer_off(L_RCTRL);
}
break;
}

return true;
Expand Down

0 comments on commit e08c2f4

Please sign in to comment.