feat(tui): add mouse hover and click support to autocomplete (#7820)
This commit is contained in:
@@ -700,6 +700,8 @@ export function Autocomplete(props: {
|
|||||||
paddingRight={1}
|
paddingRight={1}
|
||||||
backgroundColor={index === store.selected ? theme.primary : undefined}
|
backgroundColor={index === store.selected ? theme.primary : undefined}
|
||||||
flexDirection="row"
|
flexDirection="row"
|
||||||
|
onMouseOver={() => moveTo(index)}
|
||||||
|
onMouseUp={() => select()}
|
||||||
>
|
>
|
||||||
<text fg={index === store.selected ? selectedForeground(theme) : theme.text} flexShrink={0}>
|
<text fg={index === store.selected ? selectedForeground(theme) : theme.text} flexShrink={0}>
|
||||||
{option().display}
|
{option().display}
|
||||||
|
|||||||
Reference in New Issue
Block a user