╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ Home.zig ─────────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
153 switch (child.*) { 154 .home_header => { 155 index = stack_index; 156 }, 157 .stack => { 158 try child.input(allocator, key, root_focus); 159 }, 160 else => {}, 161 } 162 }, 163 .none => { 164 try child.input(allocator, key, root_focus); 165 }, 166 } 167 168 if (index != current_index) { 169 root_focus.setFocus(self.box.children.keys()[index]); 170 } 171 } 172 } 173 } 174 175 pub fn clearGrid(self: *View) void { 176 self.box.clearGrid(); 177 } 178 179 pub fn getGrid(self: View) ?Grid { 180 return self.box.getGrid(); 181 } 182 183 pub fn getFocus(self: *View) *Focus { 184 return self.box.getFocus(); 185 } 186 }; 187