From 9d5de4e9229ad363a54bbcab0a6a60b07d5f19f5 Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Fri, 22 May 2020 22:46:21 -0400 Subject: [PATCH] Fixes for keymap key selection logic. --- src/keymap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keymap.c b/src/keymap.c index b8dfb6f1..8768c41b 100644 --- a/src/keymap.c +++ b/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) { - 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) { continue;