╭ changed ───────╮ │src/ui/input.zig│ ╰────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────╮ │56 return if (new_tab != current_tab) new_tab else null; │ │57 } │ │58 │ │59 +/// enter counts only on the focused button; a click counts anywhere on it│ │60 +pub fn activated(root_focus: *Focus, button_id: usize, key: Key) bool { │ │61 + return switch (key) { │ │62 + .enter => root_focus.grandchild_id == button_id, │ │63 + .mouse => |mouse| leftClickOn(root_focus, button_id, mouse), │ │64 + else => false, │ │65 + }; │ │66 +} │ │67 + │ ╰──────────────────────────────────────────────────────────────────────────────╯