╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ User.zig ─────────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
320 try child.input(allocator, key, root_focus); 321 } 322 } 323 }, 324 else => {}, 325 } 326 }, 327 .down => { 328 switch (child.*) { 329 .user_header => { 330 index = stack_index; 331 }, 332 .stack => { 333 try child.input(allocator, key, root_focus); 334 }, 335 else => {}, 336 } 337 }, 338 .none => { 339 try child.input(allocator, key, root_focus); 340 }, 341 } 342 343 if (index != current_index) { 344 root_focus.setFocus(self.box.children.keys()[index]); 345 } 346 } 347 } 348 } 349 350 pub fn clearGrid(self: *View) void { 351 self.box.clearGrid(); 352 } 353 354 pub fn getGrid(self: View) ?Grid { 355 return self.box.getGrid(); 356 } 357 358 pub fn getFocus(self: *View) *Focus { 359 return self.box.getFocus(); 360 } 361 }; 362