onlook icon indicating copy to clipboard operation
onlook copied to clipboard

[feat] Undo/Redo feature

Open homebodify opened this issue 9 months ago • 3 comments

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.

homebodify avatar May 28 '25 23:05 homebodify

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 avatar May 30 '25 08:05 manu29d

@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 avatar May 30 '25 13:05 homebodify

@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

Kitenite avatar Jun 04 '25 17:06 Kitenite

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.

Image

homebodify avatar Jun 11 '25 18:06 homebodify

@homebodify gotcha, will take another look

Kitenite avatar Jun 11 '25 18:06 Kitenite

This is now fixed haha thanks @homebodify for reporting https://github.com/onlook-dev/onlook/pull/2152

Kitenite avatar Jun 11 '25 19:06 Kitenite

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? 😄

homebodify avatar Jun 11 '25 19:06 homebodify

Took a second to build but it should be available now. Can you check again?

Kitenite avatar Jun 11 '25 19:06 Kitenite

It works!!! 🎉 Thanks. I have several issues for Onlook. I'll keep using it then report them soon when they make problem continuously.

homebodify avatar Jun 11 '25 19:06 homebodify

Awesome! Thanks for the tickets, they really help as you can see

Kitenite avatar Jun 11 '25 19:06 Kitenite