fix: decouple actionFinalize and actionErase (#4984)
* Update actionCanvas.tsx * Update actionFinalize.tsx * lint * remove Escape trigger from actionErase * revert to lastActiveTool only if coming from eraser tool * unrelated: fix restoring `appState.activeTool` * one more restoring fix * fix tests Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
@ -310,7 +310,9 @@ describe("restoreAppState", () => {
|
||||
stubImportedAppState,
|
||||
stubLocalAppState,
|
||||
);
|
||||
expect(restoredAppState.activeTool).toBe(stubImportedAppState.activeTool);
|
||||
expect(restoredAppState.activeTool).toEqual(
|
||||
stubImportedAppState.activeTool,
|
||||
);
|
||||
expect(restoredAppState.cursorButton).toBe(
|
||||
stubImportedAppState.cursorButton,
|
||||
);
|
||||
|
Reference in New Issue
Block a user