@bobfrankston/rmfmail 1.1.125 → 1.1.128

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.
package/client/app.js CHANGED
@@ -3204,6 +3204,16 @@ document.addEventListener("keydown", (e) => {
3204
3204
  const active = document.activeElement;
3205
3205
  if (active && (active.tagName === "INPUT" || active.tagName === "TEXTAREA" || active.tagName === "SELECT"))
3206
3206
  return;
3207
+ // Respect focus: if the preview iframe or the folder tree has
3208
+ // focus, arrows should scroll/navigate that pane — not hijack to
3209
+ // list navigation. The viewer's iframe forwards every keydown to
3210
+ // the parent for hotkey unification; here we bail so the iframe's
3211
+ // own preventDefault chain leaves the native arrow-scroll alone
3212
+ // (Bob 2026-05-22: "arrow keys should work in the window with focus").
3213
+ if (active && (active.tagName === "IFRAME"
3214
+ || active.closest?.("#message-viewer")
3215
+ || active.closest?.("#folder-tree")))
3216
+ return;
3207
3217
  const body = document.getElementById("ml-body");
3208
3218
  if (!body)
3209
3219
  return;