scroll wheel switches layers (as opposed to crashing as it did before)

This commit is contained in:
Maarten van Gompel
2023-08-29 14:23:19 +02:00
parent 0ca0409400
commit bfcd3527dd
2 changed files with 12 additions and 1 deletions

View File

@ -62,7 +62,7 @@ kbd_next_layer(struct kbd *kb, struct key *k, bool invert) {
}
layer_index = layercount - 1;
}
kb->mods ^= Shift;
if (!invert) kb->mods ^= Shift;
} else {
// normal behaviour: switch to the next layout in the layer sequence
layer_index++;