@bobfrankston/rmfmail 1.1.201 → 1.1.203

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9199,7 +9199,11 @@ document.addEventListener("keydown", (e) => {
9199
9199
  deleteSelection();
9200
9200
  }
9201
9201
  if (e.ctrlKey && e.key === "z") {
9202
- if (undoStack.length > 0) {
9202
+ const t = e.target;
9203
+ const tag = t?.tagName;
9204
+ const inEditable = tag === "INPUT" || tag === "TEXTAREA" || tag === "SELECT" || !!t?.isContentEditable;
9205
+ const composeOpen = !!document.querySelector(".compose-overlay");
9206
+ if (!inEditable && !composeOpen && undoStack.length > 0) {
9203
9207
  e.preventDefault();
9204
9208
  performUndo();
9205
9209
  }