╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ User.zig ─────────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
218 } else { 219 try child.input(allocator, key, root_focus); 220 } 221 } 222 }, 223 else => {}, 224 } 225 }, 226 .down => { 227 switch (child.*) { 228 .user_header => { 229 index = stack_index; 230 }, 231 .stack => { 232 try child.input(allocator, key, root_focus); 233 }, 234 else => {}, 235 } 236 }, 237 .none => { 238 try child.input(allocator, key, root_focus); 239 }, 240 } 241 242 if (index != current_index) { 243 try root_focus.setFocus(self.box.children.keys()[index]); 244 } 245 } 246 } 247 } 248 249 pub fn clearGrid(self: *View) void { 250 self.box.clearGrid(); 251 } 252 253 pub fn getGrid(self: View) ?Grid { 254 return self.box.getGrid(); 255 } 256 257 pub fn getFocus(self: *View) *Focus { 258 return self.box.getFocus(); 259 } 260 }; 261