fix funcpunc problem
parent
9fc027ebbe
commit
20343f60b9
17
src/main.c
17
src/main.c
|
@ -212,21 +212,20 @@ void layer_disable(layer l) {
|
||||||
layers_active[l] -= 1;
|
layers_active[l] -= 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (l == layers_top) {
|
||||||
|
layers_top = highest_active_layer();
|
||||||
|
}
|
||||||
|
|
||||||
|
// re-press affected keys
|
||||||
for (u8 row=0; row<KB_ROWS; row++) {
|
for (u8 row=0; row<KB_ROWS; row++) {
|
||||||
for (u8 col=0; col<KB_COLUMNS; col++) {
|
for (u8 col=0; col<KB_COLUMNS; col++) {
|
||||||
if (layers_pressed[row][col] == l) {
|
if (layers_pressed[row][col] == l) {
|
||||||
// re-press affected keys
|
exec_key(l, row, col, false);
|
||||||
keycode key = kb_keycode(l, row, col);
|
layers_pressed[row][col] = layers_top;
|
||||||
debug_printf("re: %d on l: %d at: %d x %d\n",
|
exec_key(layers_top, row, col, true);
|
||||||
key, l,
|
|
||||||
row, col);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (l == layers_top) {
|
|
||||||
layers_top = highest_active_layer();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue