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