╭ changed ──────╮ │src/ui/Repo.zig│ ╰───────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │519 if (stack.getSelected()) |selected_widget| switch (selected_widget.*) {│ │520 .repo_files => |*v| if (v.focusHeader(root_focus)) return, │ │521 .repo_commits => |*v| if (v.focusHeader(root_focus)) return, │ │522 + .repo_events => |*v| if (v.focusHeader(root_focus)) return, │ │523 .repo_undo => |*v| if (v.focusHeader(root_focus)) return, │ │524 else => {}, │ │525 }; │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ─────────────╮ │src/ui/Repo/Events.zig│ ╰──────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │380 } │ │381 content_stack.getFocus().child_id = content_stack.children.keys()[@intFromEnum(data.view)]; │ │382 try outer.children.put(allocator, content_stack.getFocus().id, .{ .widget = .{ .stack = content_stack }, .rect = null, .min_size = null });│ │383 - outer.getFocus().child_id = outer.children.keys()[header_index]; │ │383 + outer.getFocus().child_id = outer.children.keys()[content_index]; │ │384 return .{ .box = outer, .data = data, .session = session, .detailed_index = .{ null, null } }; │ │385 } │ │386 │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────╮ │572 │ │573 pub fn atTop(self: *View) bool { │ │574 return self.headerActive(); │ │575 + } │ │576 + │ │577 + // arriving from the page's tabs lands on the sub header, not the content│ │578 + pub fn focusHeader(self: *View, root_focus: *Focus) bool { │ │579 + self.header().focusCurrent(root_focus); │ │580 + return true; │ │581 } │ │582 │ │583 pub fn clearGrid(self: *View) void { │ ╰──────────────────────────────────────────────────────────────────────────────────╯