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