╭ changed ─────────────╮ │src/ui/Repo/Header.zig│ ╰──────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │83 │ │84 var text_box = try wgt.TextBox.init(allocator, text, .{ .border_style = .hidden, .wrap_kind = .none });│ │85 errdefer text_box.deinit(allocator); │ │86 - text_box.getFocus().focusable = true; │ │86 + text_box.getFocus().mode = .all; │ │87 text_box.getFocus().kind = .{ .custom = link }; │ │88 first_group_width += try xitui.width.displayWidth(text) + 2; │ │89 try title_box.children.put(allocator, text_box.getFocus().id, .{ │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │103 const title_link = try std.fmt.allocPrint(aa, "a:{s}", .{try files_root_route.toUrl(session.page_arena)});│ │104 var title_view = try ui.Title.View.init(allocator, &data.title); │ │105 errdefer title_view.deinit(allocator); │ │106 - title_view.getFocus().focusable = true; │ │106 + title_view.getFocus().mode = .all; │ │107 title_view.getFocus().kind = .{ .custom = title_link }; │ │108 try title_box.children.put(allocator, title_view.getFocus().id, .{ │ │109 .widget = .{ .title = title_view }, │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │161 { │ │162 var text_box = try wgt.TextBox.init(allocator, "files", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none, .bottom_label = bottom_label });│ │163 errdefer text_box.deinit(allocator); │ │164 - text_box.getFocus().focusable = true; │ │164 + text_box.getFocus().mode = .all; │ │165 text_box.getFocus().kind = .{ .custom = files_link }; │ │166 try tab_ids.put(allocator, text_box.getFocus().id, {}); │ │167 if (current_tag == .repo_files) selected_tab = text_box.getFocus().id; │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │176 { │ │177 var text_box = try wgt.TextBox.init(allocator, commits_label, .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none, .bottom_label = bottom_label });│ │178 errdefer text_box.deinit(allocator); │ │179 - text_box.getFocus().focusable = true; │ │179 + text_box.getFocus().mode = .all; │ │180 text_box.getFocus().kind = .{ .custom = commits_link }; │ │181 try tab_ids.put(allocator, text_box.getFocus().id, {}); │ │182 if (current_tag == .repo_commits) selected_tab = text_box.getFocus().id; │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │191 { │ │192 var text_box = try wgt.TextBox.init(allocator, "refs", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │193 errdefer text_box.deinit(allocator); │ │194 - text_box.getFocus().focusable = true; │ │194 + text_box.getFocus().mode = .all; │ │195 text_box.getFocus().kind = .{ .custom = refs_link }; │ │196 try tab_ids.put(allocator, text_box.getFocus().id, {}); │ │197 if (current_tag == .repo_refs) selected_tab = text_box.getFocus().id; │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │206 { │ │207 var text_box = try wgt.TextBox.init(allocator, "issues", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │208 errdefer text_box.deinit(allocator); │ │209 - text_box.getFocus().focusable = true; │ │209 + text_box.getFocus().mode = .all; │ │210 text_box.getFocus().kind = .{ .custom = issues_link }; │ │211 try tab_ids.put(allocator, text_box.getFocus().id, {}); │ │212 if (current_tag == .repo_issues) selected_tab = text_box.getFocus().id; │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │221 { │ │222 var text_box = try wgt.TextBox.init(allocator, "patches", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │223 errdefer text_box.deinit(allocator); │ │224 - text_box.getFocus().focusable = true; │ │224 + text_box.getFocus().mode = .all; │ │225 text_box.getFocus().kind = .{ .custom = patches_link }; │ │226 try tab_ids.put(allocator, text_box.getFocus().id, {}); │ │227 if (current_tag == .repo_patches) selected_tab = text_box.getFocus().id; │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │236 { │ │237 var text_box = try wgt.TextBox.init(allocator, "discussions", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │238 errdefer text_box.deinit(allocator); │ │239 - text_box.getFocus().focusable = true; │ │239 + text_box.getFocus().mode = .all; │ │240 text_box.getFocus().kind = .{ .custom = discussions_link }; │ │241 try tab_ids.put(allocator, text_box.getFocus().id, {}); │ │242 if (current_tag == .repo_discussions) selected_tab = text_box.getFocus().id; │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │251 { │ │252 var text_box = try wgt.TextBox.init(allocator, "events", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │253 errdefer text_box.deinit(allocator); │ │254 - text_box.getFocus().focusable = true; │ │254 + text_box.getFocus().mode = .all; │ │255 text_box.getFocus().kind = .{ .custom = events_link }; │ │256 try tab_ids.put(allocator, text_box.getFocus().id, {}); │ │257 if (current_tag == .repo_events) selected_tab = text_box.getFocus().id; │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │279 if (session.data.user_id != null) { │ │280 var text_box = try wgt.TextBox.init(allocator, "settings", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │281 errdefer text_box.deinit(allocator); │ │282 - text_box.getFocus().focusable = true; │ │282 + text_box.getFocus().mode = .all; │ │283 text_box.getFocus().kind = .{ .custom = settings_link }; │ │284 try tab_ids.put(allocator, text_box.getFocus().id, {}); │ │285 if (current_tag == .repo_settings) selected_tab = text_box.getFocus().id; │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯