╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ Fork.zig ─────────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
263 .repo_files => |*view| if (view.focusHeader(root_focus)) return, 264 .repo_commits => |*view| if (view.focusHeader(root_focus)) return, 265 else => {}, 266 }; 267 next_index = stack_index; 268 }, 269 .stack => try child.input(allocator, key, root_focus), 270 else => {}, 271 }, 272 .none => try child.input(allocator, key, root_focus), 273 } 274 if (next_index != current_index) root_focus.setFocus(self.box.children.keys()[next_index]); 275 } 276 277 pub fn clearGrid(self: *View) void { 278 self.box.clearGrid(); 279 } 280 281 pub fn getGrid(self: View) ?Grid { 282 return self.box.getGrid(); 283 } 284 285 pub fn getFocus(self: *View) *Focus { 286 return self.box.getFocus(); 287 } 288 }; 289