Repository: 4ian/GDevelop (language: javascript)

Issue:
Piskel Softlock
### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/4ian/GDevelop/issues)

### Describe the bug

Sometimes, when I'm using the Piskel Editor, I get softlocked. This usually happens when you press (command + z) . But only sometimes. A big box just appears on my screen, and I can't do anything about it. Then, the only way to fix it is to force quit gdevelop. It's frustrating, because then I can't even save what I was working on.
Some pictures:
<img width="1000" alt="Screenshot 2024-09-21 at 1 26 33 PM" src="https://github.com/user-attachments/assets/50be0893-dcf1-4cd4-b052-c55031b5f920">
And A video of me speedrunning the glitch:

https://github.com/user-attachments/assets/15534695-a11b-49d4-a99f-9a1c72b7b1a3

It just happens when I press command + z, and only sometimes. Why?

### Steps to reproduce

1. Open Piskel Editor
2. Use command + z
3. Eventually, it will show a weird screen which softlocks you

### GDevelop platform

Desktop

### GDevelop version

5.4.213

### Platform info

<details>

macOS

Sonoma 14.6.1


### Additional context

_No response_


Discussion / hints:
Oh, and when I press force quit, it disappears, and says "Are you sure you want to quit Gdevelop?" I press no, and it closes anyways.
Interesting. Could it be electron intercepting the key binding. Does this happen on the web version?
Let me check…

Fix patch:
diff --git a/newIDE/app/package.json b/newIDE/app/package.json
index c5d5a0c15735..f636cebacedd 100644
--- a/newIDE/app/package.json
+++ b/newIDE/app/package.json
@@ -131,7 +131,7 @@
     "reload-extensions": "node scripts/import-GDJS-Runtime.js --skip-clean",
     "build-theme-resources": "node scripts/build-theme-resources.js",
     "create-new-theme": "node scripts/create-new-theme.js",
-    "import-zipped-external-editors": "cd scripts && node import-zipped-editor.js piskel 5.0.0-beta82 b8e4d57b160ff93d3680168cd271af795412ea6c4c0da321aee2946345c7fb75 && node import-zipped-editor.js jfxr 5.0.0-beta55 8ac12b557c2ddba958c6f0d3e0c5df8cf3369a65262dcb90cf5c8a7a7d20bdf6 && node import-zipped-editor.js yarn 5.0.134 ba8558cad00ec9b18cf3c6fd8647f8c1478ca67c894bca94a152a3740af209cc"
+    "import-zipped-external-editors": "cd scripts && node import-zipped-editor.js piskel 5.5.228 b161dc74582e428a6d210cd1b74f052ca4aab301d0d522e0be87bdb4962d0fb7 && node import-zipped-editor.js jfxr 5.0.0-beta55 8ac12b557c2ddba958c6f0d3e0c5df8cf3369a65262dcb90cf5c8a7a7d20bdf6 && node import-zipped-editor.js yarn 5.0.134 ba8558cad00ec9b18cf3c6fd8647f8c1478ca67c894bca94a152a3740af209cc"
   },
   "eslintConfig": {
     "extends": "react-app",
diff --git a/newIDE/app/public/external/piskel/README.md b/newIDE/app/public/external/piskel/README.md
index bfcc23224c2c..b1f9daf35f06 100644
--- a/newIDE/app/public/external/piskel/README.md
+++ b/newIDE/app/public/external/piskel/README.md
@@ -1,9 +1,8 @@
 This folder contains sources to embed the Piskel editor (https://www.piskelapp.com/) so that it can
 be used directly from GDevelop to edit images.
 
-GD uses an updated version of piskel from <https://github.com/blurymind/piskel/tree/piskel-plus>
+GD uses an updated version of piskel from <https://github.com/GDevelopApp/piskel> on `master` branch.
 It contains a number of advanced color manipulation features and improvements to aid artists.
-commit number: a300d17eb88d2b9d1fa2bbe3a810ad1bb76f1f81
 
 Piskel sources are downloaded by `import-zipped-editor.js` script. They are raw, unchanged sources
 of the Piskel editor build. Sources will be stored in the `piskel-editor` folder.


Test patch: