svgedit
svgedit copied to clipboard
Sometimes shape can't be deleted by pressing Del key
I used svgedit in tsailun project: https://github.com/lisupeng/tsailun
Sometimes shape can't be deleted by pressing Del key
Hello, thank you for the report but please provide a way to reproduce the issue .
Thanks help look into this issue. I captured a video: https://youtu.be/kMwuESpa7nI Reproduce steps:
- Create a shape
- Open the svg again and select the shape.
- The shape can't be deleted by pressing key
I can't reproduce using V7. Please reproducing using https://svgedit.netlify.app/editor/index.html
Thanks for your help!
This happens when I use svgedit in iframe and focus isn't on iframe by default. Clicking a svg shape doesn't change focus either.
This issue can be fixed by calling window.focus() in svgedit init().
Focus will be changed to svgedit after clicking svgedit's toobar. So sometime it works.
Thanks for your help!
This happens when I use svgedit in iframe and focus isn't on iframe by default. Clicking a svg shape doesn't change focus either.
This issue can be fixed by calling window.focus() in svgedit init().
Could you provide a PR to fix the issue?
Since there's only one line code change, can anyone help piggyback the code ?
I would be please to help but can you detail exactly what needs to be modified. Thanks