╭ changed ─────────────╮ │src/ui/Fork/Header.zig│ ╰──────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │65 const text = try std.fmt.bufPrint(&text_buf, "{s}/", .{data.owner_name}); │ │66 var owner = try wgt.TextBox.init(allocator, text, .{ .border_style = .hidden, .wrap_kind = .none }); │ │67 errdefer owner.deinit(allocator); │ │68 - owner.getFocus().focusable = true; │ │68 + owner.getFocus().mode = .all; │ │69 owner.getFocus().kind = .{ .custom = try std.fmt.allocPrint(aa, "a:/user/{s}", .{data.owner_name}) }; │ │70 first_group_width += try xitui.width.displayWidth(text) + 2; │ │71 try title_box.children.put(allocator, owner.getFocus().id, .{ .widget = .{ .text_box = owner }, .rect = null, .min_size = null });│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │76 const route = ui.RoutablePage.repoFilesRoute(identity, null, "", "", 0) orelse return error.RouteTooLong; │ │77 var title = try ui.Title.View.init(allocator, &data.title); │ │78 errdefer title.deinit(allocator); │ │79 - title.getFocus().focusable = true; │ │79 + title.getFocus().mode = .all; │ │80 title.getFocus().kind = .{ .custom = try std.fmt.allocPrint(aa, "a:{s}", .{try route.toUrl(session.page_arena)}) }; │ │81 try title_box.children.put(allocator, title.getFocus().id, .{ .widget = .{ .title = title }, .rect = null, .min_size = null });│ │82 } │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │102 const selected = current_tag == tag; │ │103 var tab = try wgt.TextBox.init(allocator, label, .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │104 errdefer tab.deinit(allocator); │ │105 - tab.getFocus().focusable = true; │ │105 + tab.getFocus().mode = .all; │ │106 tab.getFocus().kind = .{ .custom = try ui.inPageTabLink(session, route, selected) }; │ │107 try tab_ids.put(allocator, tab.getFocus().id, {}); │ │108 if (selected) selected_tab = tab.getFocus().id; │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │129 if (session.data.user_id != null) { │ │130 var settings = try wgt.TextBox.init(allocator, "settings", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │131 errdefer settings.deinit(allocator); │ │132 - settings.getFocus().focusable = true; │ │132 + settings.getFocus().mode = .all; │ │133 settings.getFocus().kind = .{ .custom = settings_link }; │ │134 try tab_ids.put(allocator, settings.getFocus().id, {}); │ │135 if (current_tag == .fork_settings) selected_tab = settings.getFocus().id; │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │149 if (session.is_terminal) { │ │150 var quit = try wgt.TextBox.init(allocator, ui.Quit.tab_label, .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none }); │ │151 errdefer quit.deinit(allocator); │ │152 - quit.getFocus().focusable = true; │ │152 + quit.getFocus().mode = .all; │ │153 quit.getFocus().kind = .{ .custom = ui.Quit.tab_kind }; │ │154 try tab_ids.put(allocator, quit.getFocus().id, {}); │ │155 try tabs_box.children.put(allocator, quit.getFocus().id, .{ .widget = .{ .text_box = quit }, .rect = null, .min_size = .{ .width = 3, .height = null } });│ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯