╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ───────────────╮ │src/ui/widget/thread.zig│ ╰────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1878 const use_label = "use this"; │ │1879 var use = try wgt.TextBox.init(allocator, use_label, .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │1880 errdefer use.deinit(allocator); │ │1880 - use.getFocus().focusable = true; │ │1881 + use.getFocus().mode = .all; │ │1882 use.getFocus().kind = .{ .custom = link }; │ │1883 try row.children.put(allocator, use.getFocus().id, .{ │ │1884 .widget = .{ .text_box = use }, │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1891 { │ │1892 var tb = try wgt.TextBox.init(allocator, if (text.len > 0) text else "(removed)", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .word, .label = label });│ │1893 errdefer tb.deinit(allocator); │ │1893 - tb.getFocus().focusable = true; │ │1894 + tb.getFocus().mode = .all; │ │1895 try row.children.put(allocator, tb.getFocus().id, .{ .widget = .{ .text_box = tb }, .rect = null, .min_size = null }); │ │1896 } │ │1897 │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1929 fn addRow(allocator: std.mem.Allocator, box: *wgt.Box(Widget), text: []const u8, bottom_label: []const u8, link: []const u8) !void { │ │1930 var row = try wgt.TextBox.init(allocator, text, .{ .border_style = .hidden, .rounded_corners = true, .wrap_kind = .word, .bottom_label = bottom_label }); │ │1931 errdefer row.deinit(allocator); │ │1931 - row.getFocus().focusable = true; │ │1932 + row.getFocus().mode = .all; │ │1933 if (link.len != 0) row.getFocus().kind = .{ .custom = link }; │ │1934 try box.children.put(allocator, row.getFocus().id, .{ .widget = .{ .text_box = row }, .rect = null, .min_size = null, .max_size = .{ .width = null, .height = 5 } });│ │1935 } │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ──╮ │src/web.zig│ ╰───────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1896 var iter = focus.children.iterator(); │ │1897 while (iter.next()) |entry| { │ │1898 const child = entry.value_ptr.*; │ │1899 - if (!child.focus.focusable) continue; │ │1899 + if (child.focus.mode != .all) continue; │ │1900 if (excluded.contains(entry.key_ptr.*)) continue; │ │1901 const r = child.rect; │ │1902 if (x >= r.x and y >= r.y and x < r.x + r.size.width and y < r.y + r.size.height) {│ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯