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