╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ input.zig ────────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭ find file ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╮ ╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╮ │ │ │http│ ssh │ │ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╯ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╯
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