╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ UserNotifications.zig ────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭ find file ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╮ ╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╮ │ │ │http│ ssh │ │ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╯ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╯
264 }; 265 try self.contentStack().input(allocator, key, root_focus); 266 } 267 268 // moving up from the sub header returns to the page's tabs 269 pub fn atTop(self: *View) bool { 270 return self.headerActive(); 271 } 272 273 // arriving from the page's tabs lands on the sub header, not the content 274 pub fn focusHeader(self: *View, root_focus: *Focus) bool { 275 root_focus.setFocus(self.control_ids[self.view_index]); 276 return true; 277 } 278 279 pub fn clearGrid(self: *View) void { 280 self.box.clearGrid(); 281 } 282 283 pub fn getGrid(self: View) ?Grid { 284 return self.box.getGrid(); 285 } 286 287 pub fn getFocus(self: *View) *Focus { 288 return self.box.getFocus(); 289 } 290 }; 291