mirror of
https://github.com/jjsullivan5196/wvkbd.git
synced 2025-07-12 22:14:32 +02:00
scroll wheel switches layers (as opposed to crashing as it did before)
This commit is contained in:
@ -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++;
|
||||
|
Reference in New Issue
Block a user