Browse Source

Fixes for keymap key selection logic.

xmkb
Pete Johanson 5 years ago
parent
commit
9d5de4e922
  1. 2
      src/keymap.c

2
src/keymap.c

@ -55,7 +55,7 @@ zmk_key zmk_keymap_keycode_from_position(u32_t row, u32_t column)
{ {
if ((zmk_keymap_layer_state & BIT(layer)) == BIT(layer) || layer == zmk_keymap_layer_default) if ((zmk_keymap_layer_state & BIT(layer)) == BIT(layer) || layer == zmk_keymap_layer_default)
{ {
zmk_key key = zmk_keymap[layer][(row * ZMK_MATRIX_ROWS) + column]; zmk_key key = zmk_keymap[layer][(row * ZMK_MATRIX_COLS) + column];
if (key == ZC_TRNS) if (key == ZC_TRNS)
{ {
continue; continue;

Loading…
Cancel
Save