|
|
@@ -280,6 +280,7 @@ export function PermissionPrompt(props: { request: PermissionRequest }) {
|
|
|
reply: "reject",
|
|
|
requestID: props.request.id,
|
|
|
})
|
|
|
+ return
|
|
|
}
|
|
|
sdk.client.permission.reply({
|
|
|
reply: "once",
|
|
|
@@ -456,6 +457,11 @@ function Prompt<const T extends Record<string, string>>(props: {
|
|
|
paddingLeft={1}
|
|
|
paddingRight={1}
|
|
|
backgroundColor={option === store.selected ? theme.warning : theme.backgroundMenu}
|
|
|
+ onMouseOver={() => setStore("selected", option)}
|
|
|
+ onMouseUp={() => {
|
|
|
+ setStore("selected", option)
|
|
|
+ props.onSelect(option)
|
|
|
+ }}
|
|
|
>
|
|
|
<text fg={option === store.selected ? selectedForeground(theme, theme.warning) : theme.textMuted}>
|
|
|
{props.options[option]}
|