Fix toggle_passthrough command
When I implemented it, I forgot to verify I actually added a way to shut it off...
This commit is contained in:
parent
96d34bc043
commit
581f4334be
1 changed files with 6 additions and 4 deletions
|
|
@ -519,10 +519,12 @@ pub fn manage(xkb_bindings: *XkbBindings) void {
|
||||||
xkb_bindings.passthrough_active = !xkb_bindings.passthrough_active;
|
xkb_bindings.passthrough_active = !xkb_bindings.passthrough_active;
|
||||||
var it = xkb_bindings.bindings.iterator(.forward);
|
var it = xkb_bindings.bindings.iterator(.forward);
|
||||||
while (it.next()) |binding| {
|
while (it.next()) |binding| {
|
||||||
if (xkb_bindings.passthrough_active) {
|
if (binding.command != .toggle_passthrough) {
|
||||||
binding.xkb_binding_v1.disable();
|
if (xkb_bindings.passthrough_active) {
|
||||||
} else {
|
binding.xkb_binding_v1.disable();
|
||||||
binding.xkb_binding_v1.enable();
|
} else {
|
||||||
|
binding.xkb_binding_v1.enable();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue