╭ changed ─────────────╮ │src/ui/User/Header.zig│ ╰──────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────╮ │51 { │ │52 var title_view = try ui.Title.View.init(allocator, &data.title);│ │53 errdefer title_view.deinit(allocator); │ │54 - title_view.getFocus().focusable = true; │ │54 + title_view.getFocus().mode = .all; │ │55 title_view.getFocus().kind = .{ .custom = "a:/" }; │ │56 // shrink the title when there is not enough space │ │57 try box.children.put(allocator, title_view.getFocus().id, .{ │ ╰────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │103 { │ │104 var text_box = try wgt.TextBox.init(allocator, "repos", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │105 errdefer text_box.deinit(allocator); │ │106 - text_box.getFocus().focusable = true; │ │106 + text_box.getFocus().mode = .all; │ │107 text_box.getFocus().kind = .{ .custom = repos_link }; │ │108 try tab_ids.put(allocator, text_box.getFocus().id, {}); │ │109 if (std.mem.eql(u8, repos_link, selected_link)) selected_tab = text_box.getFocus().id; │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │118 { │ │119 var text_box = try wgt.TextBox.init(allocator, "forks", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │120 errdefer text_box.deinit(allocator); │ │121 - text_box.getFocus().focusable = true; │ │121 + text_box.getFocus().mode = .all; │ │122 text_box.getFocus().kind = .{ .custom = forks_link }; │ │123 try tab_ids.put(allocator, text_box.getFocus().id, {}); │ │124 if (std.mem.eql(u8, forks_link, selected_link)) selected_tab = text_box.getFocus().id; │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │145 if (session.data.user_id != null) { │ │146 var text_box = try wgt.TextBox.init(allocator, "settings", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │147 errdefer text_box.deinit(allocator); │ │148 - text_box.getFocus().focusable = true; │ │148 + text_box.getFocus().mode = .all; │ │149 text_box.getFocus().kind = .{ .custom = settings_link }; │ │150 try tab_ids.put(allocator, text_box.getFocus().id, {}); │ │151 if (std.mem.eql(u8, settings_link, selected_link)) selected_tab = text_box.getFocus().id; │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │175 if (session.is_terminal) { │ │176 var text_box = try wgt.TextBox.init(allocator, ui.Quit.tab_label, .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │177 errdefer text_box.deinit(allocator); │ │178 - text_box.getFocus().focusable = true; │ │178 + text_box.getFocus().mode = .all; │ │179 text_box.getFocus().kind = .{ .custom = ui.Quit.tab_kind }; │ │180 try tab_ids.put(allocator, text_box.getFocus().id, {}); │ │181 try box.children.put(allocator, text_box.getFocus().id, .{ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯