Skip to content

Live Preview#2332

Closed
devvaannsh wants to merge 142 commits intomainfrom
pluto/lp
Closed

Live Preview#2332
devvaannsh wants to merge 142 commits intomainfrom
pluto/lp

Conversation

@devvaannsh
Copy link
Member

No description provided.

@sonarqubecloud
Copy link

window.document.addEventListener("click", onDocumentClick);
window.document.addEventListener("keydown", function (e) {
// for undo. refer to LivePreviewEdit.js file 'handleLivePreviewEditOperation' function
if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === "z") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might need to consider these playform specific shortcuts.Here’s the standard set of undo/redo shortcuts across major platforms:

Undo

  • Windows / Linux: Ctrl + Z
  • macOS: Cmd (⌘) + Z

Redo

There are two conventions for redo, depending on app:

  • Windows / Linux:

    • Most apps: Ctrl + Y
    • Some apps (especially text/code editors): Ctrl + Shift + Z
  • macOS:

    • Standard: Cmd (⌘) + Shift + Z

So the general pattern is:

  • Undo = Ctrl/Cmd + Z
  • Redo = Ctrl + Y (Win/Linux) or Cmd + Shift + Z (Mac), with some editors preferring Ctrl + Shift + Z everywhere for consistency.

abose and others added 26 commits August 23, 2025 15:14
@abose abose closed this Aug 23, 2025
@abose abose reopened this Aug 23, 2025
@sonarqubecloud
Copy link

@abose abose closed this Aug 23, 2025
@abose abose deleted the pluto/lp branch August 23, 2025 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants