╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ thread.zig ───────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
2745 fn focusList(self: *This, index: usize, root_focus: *Focus) void { 2746 root_focus.setFocus(self.listScroll(index).getFocus().id); 2747 } 2748 2749 // cross to the header tabs above the stack. 2750 fn focusHeader(self: *This, root_focus: *Focus) void { 2751 root_focus.setFocus(self.box.children.keys()[header_index]); 2752 } 2753 2754 pub fn clearGrid(self: *This) void { 2755 self.box.clearGrid(); 2756 } 2757 2758 pub fn getGrid(self: This) ?Grid { 2759 return self.box.getGrid(); 2760 } 2761 2762 pub fn getFocus(self: *This) *Focus { 2763 return self.box.getFocus(); 2764 } 2765 2766 // for the parent's "scroll up at the top jumps to the header" check: at the 2767 // top only while the header tabs hold focus, so up from the split 2768 // crosses into the tabs first. 2769 pub fn atTop(self: *This) bool { 2770 return self.headerActive(); 2771 } 2772 }; 2773 } 2774