Deleting image while still previewing it doesn't automatically close the preview

Describe the bug

Deleting an image immediately after double-clicking it while the preview is still shown deletes the image but not the preview. I think this is quite useful as to remind that the user can still undo/redo, but it’s just not intuitive to not close the preview.

To Reproduce

Steps to reproduce the behavior:

    1. Insert a picture to the page.
    1. Double click the picture to show its preview.
    1. Press the delete key.
    1. The preview will stay on the screen but the picture is already removed from the page contents.

Expected behavior

The preview should close together as the picture is deleted.

Desktop (please complete the following information):

  • OS: Windows 10
  • Version: 0.17.8
1 Like

@Has Thank you for your notice! It has been added to the bug tracker

Still the case in 0.26.1