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