╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ───────────────╮ │src/ui/Repo/Branches.zig│ ╰────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │165 return self.contentBox().getFocus().child_id == self.addBox().getFocus().id; │ │166 + } │ │167 + │ │168 + fn aboutBox(self: *View) *wgt.Box(ui.Widget) { │ │169 + return &self.contentBox().children.values()[about_index].widget.box; │ │170 } │ │171 │ │172 pub fn build(self: *View, allocator: std.mem.Allocator, constraint: layout.Constraint, root_focus: *Focus) !void {│ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │173 self.clearGrid(); │ │174 try self.labelAddInput(root_focus); │ │175 + ui.widget.markAboutFocused(self.aboutBox(), root_focus); │ │176 // the window's height as a minimum centers rows that fit │ │177 try self.scroll.build(allocator, .{ │ │178 .min_size = .{ .width = constraint.min_size.width, .height = constraint.max_size.height orelse constraint.min_size.height },│ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │215 switch (key) { │ │216 .arrow_left, .arrow_right => _ = ui.widget.moveInSelectedRow(rows, root_focus, key == .arrow_right),│ │217 else => { │ │209 - // the add row sits above the rows, and a row's name is a link the host follows │ │218 + // the text and the add row sit above the rows, and a row's name is a link the host follows │ │219 if (current <= add_index) return; │ │220 const row_box = &rows.children.values()[current].widget.box; │ │221 const button_id = row_box.getFocus().child_id orelse return; │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────╮ │250 return self.scroll.getFocus(); │ │251 } │ │252 │ │244 - // up leaves the view from the add row │ │253 + // up leaves the view from the explanatory text │ │254 pub fn atTop(self: *View) bool { │ │246 - return self.addActive(); │ │255 + return self.contentBox().getFocus().child_id == self.aboutBox().getFocus().id;│ │256 } │ │257 }; │ │258 │ ╰───────────────────────────────────────────────────────────────────────────────────────────╯