╭ changed ────────╮ │src/ui/widget.zig│ ╰─────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │122 } │ │123 }; │ │124 │ │125 +// whether `mouse` is a left click on the selected row of `list`. the host │ │126 +// selects a clicked row before forwarding the press. │ │127 +pub fn clickOnSelectedRow(list: *wgt.Box(Widget), root_focus: *Focus, mouse: xitui.input.Mouse) bool {│ │128 + const cid = list.getFocus().child_id orelse return false; │ │129 + return inp.leftClickOn(root_focus, cid, mouse); │ │130 +} │ │131 + │ │132 pub const back_button_width = 3; │ │133 const back_button_height = 3; │ │134 const back_kind = "back"; │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────╯