Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
Ensure no conflicts on undo and redo hotkeys (#2230)
Mayke2a7a7bc3e54e
diff --git a/apps/builder/app/shared/shortcuts/shortcuts.ts b/apps/builder/app/shared/shortcuts/shortcuts.tsindex bcdafb1611..e93a7379f9 100644--- a/apps/builder/app/shared/shortcuts/shortcuts.ts+++ b/apps/builder/app/shared/shortcuts/shortcuts.ts@@ -31,7 +31,11 @@ export const useSharedShortcuts = ({// safari use cmd+z to reopen closed tabs so fallback to ctrl"meta+z, ctrl+z",() => store.undo(),- { enableOnFormTags: true, enableOnContentEditable: false },+ {+ // prevents undoing when user is editing text in a control on style panel etc.+ enableOnFormTags: source === "canvas",+ enableOnContentEditable: false,+ },[]);@@ -39,7 +43,11 @@ export const useSharedShortcuts = ({// safari use cmd+shift+z to close reopened tabs so fallback to ctrl"meta+shift+z, ctrl+shift+z",() => store.redo(),- { enableOnFormTags: true, enableOnContentEditable: false },+ {+ // prevents undoing when user is editing text in a control on style panel etc.+ enableOnFormTags: source === "canvas",+ enableOnContentEditable: false,+ },[]);