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,6 +519,7 @@ pub fn manage(xkb_bindings: *XkbBindings) void {
|
|||
xkb_bindings.passthrough_active = !xkb_bindings.passthrough_active;
|
||||
var it = xkb_bindings.bindings.iterator(.forward);
|
||||
while (it.next()) |binding| {
|
||||
if (binding.command != .toggle_passthrough) {
|
||||
if (xkb_bindings.passthrough_active) {
|
||||
binding.xkb_binding_v1.disable();
|
||||
} else {
|
||||
|
|
@ -526,6 +527,7 @@ pub fn manage(xkb_bindings: *XkbBindings) void {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const std = @import("std");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue