╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ Repo.zig ─────────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
537 .repo_refs => |*v| if (v.focusHeader(root_focus)) return, 538 .repo_events => |*v| if (v.focusHeader(root_focus)) return, 539 .repo_undo => |*v| if (v.focusHeader(root_focus)) return, 540 else => {}, 541 }; 542 index = stack_index; 543 }, 544 .stack => { 545 try child.input(allocator, key, root_focus); 546 }, 547 else => {}, 548 } 549 }, 550 .none => { 551 try child.input(allocator, key, root_focus); 552 }, 553 } 554 555 if (index != current_index) { 556 root_focus.setFocus(self.box.children.keys()[index]); 557 } 558 } 559 } 560 } 561 562 pub fn clearGrid(self: *View) void { 563 self.box.clearGrid(); 564 } 565 566 pub fn getGrid(self: View) ?Grid { 567 return self.box.getGrid(); 568 } 569 570 pub fn getFocus(self: *View) *Focus { 571 return self.box.getFocus(); 572 } 573 }; 574