This commit is contained in:
parent
9d3c0018c1
commit
4ebb065f94
|
@ -557,7 +557,7 @@ bool process_combo(uint16_t keycode, keyrecord_t *record) {
|
||||||
/* Only check keycodes from one layer. */
|
/* Only check keycodes from one layer. */
|
||||||
keycode = keymap_key_to_keycode(COMBO_ONLY_FROM_LAYER, record->event.key);
|
keycode = keymap_key_to_keycode(COMBO_ONLY_FROM_LAYER, record->event.key);
|
||||||
#else
|
#else
|
||||||
uint8_t highest_layer = get_highest_layer(layer_state);
|
uint8_t highest_layer = get_highest_layer(layer_state | default_layer_state);
|
||||||
uint8_t ref_layer = combo_ref_from_layer(highest_layer);
|
uint8_t ref_layer = combo_ref_from_layer(highest_layer);
|
||||||
if (ref_layer != highest_layer) {
|
if (ref_layer != highest_layer) {
|
||||||
keycode = keymap_key_to_keycode(ref_layer, record->event.key);
|
keycode = keymap_key_to_keycode(ref_layer, record->event.key);
|
||||||
|
|
Loading…
Reference in New Issue