╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ Home.zig ─────────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
194 .none => { 195 try child.input(allocator, key, root_focus); 196 }, 197 } 198 199 if (index != current_index) { 200 try root_focus.setFocus(self.box.children.keys()[index]); 201 } 202 } 203 } 204 } 205 206 pub fn clearGrid(self: *View) void { 207 self.box.clearGrid(); 208 } 209 210 pub fn getGrid(self: View) ?Grid { 211 return self.box.getGrid(); 212 } 213 214 pub fn getFocus(self: *View) *Focus { 215 return self.box.getFocus(); 216 } 217 }; 218