Skip to content

fix(ui): replace native confirm() with an in-app dialog to avoid window focus loss#45

Open
Viscerous wants to merge 1 commit into
tealios:masterfrom
Viscerous:fix/confirm-dialog-focus-loss
Open

fix(ui): replace native confirm() with an in-app dialog to avoid window focus loss#45
Viscerous wants to merge 1 commit into
tealios:masterfrom
Viscerous:fix/confirm-dialog-focus-loss

Conversation

@Viscerous

Copy link
Copy Markdown

Native window.confirm() on Electron can leave the window unfocused after the dialog closes, blocking text input until the user alt-tabs.

Adds a ConfirmProvider/useConfirm() in-app dialog (promise-based, drop-in for confirm()) and replaces every native confirm() call: fragment archive/delete, passage removal, timeline deletion (tabs + manager panel), archived-fragment deletion, and story deletion.

Fixes: #40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Native confirm dialog blocks further text input

1 participant