feat(tui): add mouse hover and click support to autocomplete (#7820)

This commit is contained in:
Kit Langton 2026-01-11 12:45:20 -05:00 committed by GitHub
parent c526e2d908
commit a803cf8aee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -700,6 +700,8 @@ export function Autocomplete(props: {
paddingRight={1}
backgroundColor={index === store.selected ? theme.primary : undefined}
flexDirection="row"
onMouseOver={() => moveTo(index)}
onMouseUp={() => select()}
>
<text fg={index === store.selected ? selectedForeground(theme) : theme.text} flexShrink={0}>
{option().display}