fix(core/binding): 将 action_arg 改为值类型避免悬空指针问题

This commit is contained in:
2026-04-27 01:17:07 +08:00
parent c93e78bbd6
commit fc038eda35
6 changed files with 7 additions and 7 deletions

View File

@@ -27,7 +27,7 @@ static void route_key_press(
for (size_t i = 0; i < count; ++i) {
auto binding = &bindings[i];
if (binding->modifiers == e->modifiers && binding->keysym == e->keysym) {
binding->fn(action_ctx, binding->arg);
binding->fn(action_ctx, &binding->arg);
}
}
}