[feat] Undo/Redo feature
Describe the feature
As a designer, I use keyboard shortcuts for Undo (CMD+Z) and Redo (CMD+SHIFT+Z) even in Figma and other browser-based tools. Since this feature doesn't seem to be available, the browser tab's Undo/Redo gets triggered instead, which is often confusing. If this could be considered, I think it would help me focus better on my work.
Hi @homebodify , I think this feature already exists https://github.com/onlook-dev/onlook/blob/bc3cec7e885f56b60d772456c645fc312dbf5af0/apps/web/client/src/app/project/%5Bid%5D/_components/canvas/hotkeys/index.tsx#L52-L53
@manu29d Thanks for letting me know. Then I think it might be a bug @Kitenite
When I press a shortcut key, the browser's shortcut is executed. I use Arc browser.
https://github.com/user-attachments/assets/7a7b8bd0-c2a3-4c66-8348-ed6887397576
@homebodify , we tried getting around this. Unfortunately Arc takes precedence over anything we can do. You can change the setting however. https://www.reddit.com/r/ArcBrowser/comments/1dchc8b/comment/l7xur04/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button
Hi @Kitenite, I'm sorry for the late reply due to my bloody busy life. 😄
As you probably know, Arc browser has this as a default menu function, so it cannot be changed to a shortcut. :(
Just to be sure, I checked if other tools also have this problem in Arc. I tested Undo and Redo in design tools like Figma and Canva in Arc browser, and they all worked perfectly normally.
Since this is the most frequently used shortcut in design work, solving this issue would greatly improve productivity. Having to delete and modify the previous process every time is quite inconvenient. I could use a different browser, but I'm not sure if it would be effective to run two browsers just for Onlook.
@homebodify gotcha, will take another look
This is now fixed haha thanks @homebodify for reporting https://github.com/onlook-dev/onlook/pull/2152
Does it work now? It's still the same even after I quit and restarted the browser. Or is it expected to work in the next update? 😄
Took a second to build but it should be available now. Can you check again?
It works!!! 🎉 Thanks. I have several issues for Onlook. I'll keep using it then report them soon when they make problem continuously.
Awesome! Thanks for the tickets, they really help as you can see