@bobfrankston/rmfmail 1.1.96 → 1.1.97

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/.commitmsg CHANGED
@@ -1,15 +1,15 @@
1
- Alarm/snooze: log decisions to the daemon log so snooze is verifiable
1
+ Reply scrolls to top; Ctrl+A no longer hijacked in text fields
2
2
 
3
- On review the snooze keying is actually correct snoozeItem stores under
4
- item.uuid, which IS the full per-occurrence key (uuid:startMs@offset for
5
- calendar, uuid:dueMs for tasks) that collectDueAlarms reads back as
6
- snoozed[key]. They match.
3
+ - Reply/forward: setCursor(0) now scrolls the editor viewport to the top
4
+ (editor.getWin().scrollTo(0,0)), so the caret above the quoted block is
5
+ the line you're looking at instead of being left scrolled down inside
6
+ the quote.
7
7
 
8
- What was missing was visibility: the [alarm] decisions used plain
9
- console.log, which from the WebView never reaches the daemon log file
10
- so "is snooze working?" couldn't be answered after the fact. Added an
11
- alog() helper that mirrors to the daemon log via logClientEvent, a
12
- "snooze saved" line (key + minutes + untilMs), and routed the existing
13
- fire-decision / dismiss / unknown-result logs through it. Next snooze is
14
- now traceable: the "snooze saved" line and the following "fire decision"
15
- line confirm the snooze took and for how long.
8
+ - Ctrl+A: the message-list select-all guard used `.closest(".message-list,
9
+ .ml-body, body)` `body` always matches, so Ctrl+A in the search box
10
+ (or any input) selected every message instead of the box's text. Now it
11
+ returns early when focus is in an INPUT/TEXTAREA/SELECT/contenteditable,
12
+ so Ctrl+A selects (and lets you clear) the search field normally.
13
+
14
+ - docs/rmf-tiny.md: marked implemented; added a running "Known TinyMCE
15
+ quirks" log (caret/scroll, link-extend, spellcheck, <p>-to-<br>).
@@ -8647,8 +8647,11 @@ document.addEventListener("keydown", (e) => {
8647
8647
  applyFontSize(next);
8648
8648
  }
8649
8649
  if (e.ctrlKey && e.key === "a") {
8650
+ const t = e.target;
8651
+ const tag = t?.tagName;
8652
+ if (tag === "INPUT" || tag === "TEXTAREA" || tag === "SELECT" || t?.isContentEditable) return;
8650
8653
  const mlBody = document.getElementById("ml-body");
8651
- if (mlBody && document.activeElement?.closest(".message-list, .ml-body, body")) {
8654
+ if (mlBody) {
8652
8655
  e.preventDefault();
8653
8656
  mlBody.querySelectorAll(".ml-row").forEach((r) => r.classList.add("selected"));
8654
8657
  }