fix stickies
parent
3bfad0fb5c
commit
fc3a0906f9
|
@ -220,10 +220,14 @@ void layer_disable(layer l) {
|
||||||
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) {
|
||||||
|
// FIXME this kinda shouldn't be here and it privileges layer 0 even more
|
||||||
layers_pressed[row][col] = 0;
|
layers_pressed[row][col] = 0;
|
||||||
exec_key(l, row, col, false);
|
exec_key(l, row, col, false);
|
||||||
layers_pressed[row][col] = layers_top;
|
|
||||||
exec_key(layers_top, row, col, true);
|
if (! layer_sticky[l]) { // don't resend for sticky keys
|
||||||
|
layers_pressed[row][col] = layers_top;
|
||||||
|
exec_key(layers_top, row, col, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue