@@ -77,6 +77,8 @@ export function DialogGoUpsell(props: DialogGoUpsellProps) {
return
}
if (evt.name === "return") {
+ evt.preventDefault()
+ evt.stopPropagation()
if (selected() === "subscribe") subscribe(props, dialog)
else dismiss(props, dialog)
@@ -42,6 +42,8 @@ export function DialogSessionDeleteFailed(props: {
useKeyboard((evt) => {
void confirm()
if (evt.name === "left" || evt.name === "up") {
@@ -15,6 +15,8 @@ export function DialogAlert(props: DialogAlertProps) {
props.onConfirm?.()
dialog.clear()
@@ -25,6 +25,8 @@ export function DialogConfirm(props: DialogConfirmProps) {
if (store.active === "confirm") props.onConfirm?.()
if (store.active === "cancel") props.onCancel?.()
@@ -35,6 +35,8 @@ export function DialogExportOptions(props: DialogExportOptionsProps) {
props.onConfirm?.({
filename: textarea.plainText,
thinking: store.thinking,
@@ -11,6 +11,8 @@ export function DialogHelp() {
if (evt.name === "return" || evt.name === "escape") {
})
@@ -29,6 +29,8 @@ export function DialogPrompt(props: DialogPromptProps) {
props.onConfirm?.(textarea.plainText)