-
-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cancelling profile creation with "Esc" not fully working #4365
Comments
I did some debugging. Looks like on first Esc press it invokes deltachat-desktop/packages/frontend/src/components/Dialog/Dialog.tsx Lines 61 to 70 in 1abfd30
Answers here https://stackoverflow.com/questions/61021135/prevent-dialog-from-closing-on-keydown-esc-in-chrome indicate that this is a Chromium thing. So this affects all dialogs that use Let's consider handling |
resolves #4365 Pressing escape key twice will close open dialogs in Chrome no matter how onCancel is configured https://issues.chromium.org/issues/346597066 To handle that we move the onClickBackButton function one component higher to add it as onClose prop to the Dialog and handle the event the same way a BackButton Click would be handled
I discovered that on the second Another hack I can suggest is to |
Oh, and another thing: maybe we shouldn't utilize deltachat-desktop/packages/frontend/src/components/Dialog/Dialog.tsx Lines 73 to 75 in 5e07d5e
But I guess we still want other contents to be non-interactive for such dialogs, so IDK... |
resolves #4365 Pressing escape key twice will close open dialogs in Chrome no matter how onCancel is configured https://issues.chromium.org/issues/346597066 To handle that we move the onClickBackButton function one component higher to add it as onClose prop to the Dialog and handle the event the same way a BackButton Click would be handled
Let's reopen to track other such dialogs as suggested in #4396 (review) |
Closing since the bug is fixed. Followup is here: #4397 |
when cancelling profile creation with the "Back Arrow", the dialog is closed, the account in creation is removed, and one is back in the last profile - all as expected.
however, using the "Esc" key instead, the account in creation is not removed and one is not back in the last profile. also the dialog is only removed partly, the background images stays:
weirdly, the dialog comes back when the window is resized
The text was updated successfully, but these errors were encountered: