What happened
After entering content in the Maka composer and immediately pasting additional content, pressing Command+Z on macOS or Ctrl+Z on Windows/Linux does not undo the most recent paste operation.
Instead, the most recently typed content is removed while the pasted content remains.
If undo is pressed repeatedly until only the pasted content remains, subsequent undo operations may insert one or two additional copies of that content.
This issue is not limited to a specific type of content. Both the manually entered and pasted content can be Chinese text, English text, URLs, or other plain text.
Expected behavior:
- The first undo should remove the most recently pasted content.
- Subsequent undo operations should remove previously entered content in reverse order.
- Undo operations should never reinsert or duplicate pasted content.
How to reproduce
- Open the Maka composer.
- Manually enter any content.
- Immediately paste any additional content.
- Press
Command+Z on macOS or Ctrl+Z on Windows/Linux.
- Observe that the manually entered content is removed while the pasted content remains.
- Continue pressing undo until only the pasted content remains.
- Press undo again.
- Observe that the pasted content may be inserted again one or two times.
Environment
- Maka version or commit: TBD
- OS and version: macOS (version TBD)
- Surface: Desktop
- Node.js version, if running from source: N/A
Logs, screenshots, or additional context
The problem appears to be related to how paste operations are recorded in the composer's undo history.
The issue is independent of the content type. It can occur with Chinese text, English text, URLs, or other plain text.
What happened
After entering content in the Maka composer and immediately pasting additional content, pressing
Command+Zon macOS orCtrl+Zon Windows/Linux does not undo the most recent paste operation.Instead, the most recently typed content is removed while the pasted content remains.
If undo is pressed repeatedly until only the pasted content remains, subsequent undo operations may insert one or two additional copies of that content.
This issue is not limited to a specific type of content. Both the manually entered and pasted content can be Chinese text, English text, URLs, or other plain text.
Expected behavior:
How to reproduce
Command+Zon macOS orCtrl+Zon Windows/Linux.Environment
Logs, screenshots, or additional context
The problem appears to be related to how paste operations are recorded in the composer's undo history.
The issue is independent of the content type. It can occur with Chinese text, English text, URLs, or other plain text.