mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-12-28 17:14:39 +00:00
input: handle unbind cleanup for leaf chains
This commit is contained in:
@@ -2300,7 +2300,25 @@ pub const Set = struct {
|
||||
leaf.action,
|
||||
leaf.flags,
|
||||
) catch {},
|
||||
.leaf_chained => @panic("TODO"),
|
||||
|
||||
.leaf_chained => |leaf| chain: {
|
||||
// Rebuild our chain
|
||||
set.putFlags(
|
||||
alloc,
|
||||
t,
|
||||
leaf.actions.items[0],
|
||||
leaf.flags,
|
||||
) catch break :chain;
|
||||
for (leaf.actions.items[1..]) |action| {
|
||||
set.appendChain(
|
||||
alloc,
|
||||
action,
|
||||
) catch {
|
||||
set.remove(alloc, t);
|
||||
break :chain;
|
||||
};
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user