@bobfrankston/rmfmail 1.2.114 → 1.2.116
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/TODO.md +1217 -1217
- package/client/app.bundle.js +4 -0
- package/client/app.bundle.js.map +2 -2
- package/client/app.js +8 -0
- package/client/app.js.map +1 -1
- package/client/compose/compose.bundle.js +26 -2
- package/client/compose/compose.bundle.js.map +2 -2
- package/client/compose/compose.js +32 -8
- package/client/compose/compose.js.map +1 -1
- package/client/compose/compose.ts +18 -5
- package/package.json +5 -5
|
@@ -4124,6 +4124,17 @@ function getFromAccountId() {
|
|
|
4124
4124
|
function getFromAddress() {
|
|
4125
4125
|
return fromInput.value.trim();
|
|
4126
4126
|
}
|
|
4127
|
+
function smartTab(current) {
|
|
4128
|
+
const fields = [toInput, ccInput, bccInput, subjectInput];
|
|
4129
|
+
const currentIdx = fields.indexOf(current);
|
|
4130
|
+
for (let i = currentIdx + 1; i < fields.length; i++) {
|
|
4131
|
+
if (!fields[i].value.trim() && fields[i].offsetParent !== null) {
|
|
4132
|
+
fields[i].focus();
|
|
4133
|
+
return;
|
|
4134
|
+
}
|
|
4135
|
+
}
|
|
4136
|
+
editor.focus();
|
|
4137
|
+
}
|
|
4127
4138
|
function showAutocompleteContextMenu(e, row) {
|
|
4128
4139
|
showContextMenu(e.clientX, e.clientY, [
|
|
4129
4140
|
{
|
|
@@ -4370,6 +4381,14 @@ function setupAutocomplete(input) {
|
|
|
4370
4381
|
setupAutocomplete(toInput);
|
|
4371
4382
|
setupAutocomplete(ccInput);
|
|
4372
4383
|
setupAutocomplete(bccInput);
|
|
4384
|
+
for (const field of [toInput, ccInput, bccInput, subjectInput]) {
|
|
4385
|
+
field.addEventListener("keydown", (e) => {
|
|
4386
|
+
const ke = e;
|
|
4387
|
+
if (ke.key !== "Tab" || ke.shiftKey || ke.ctrlKey || ke.altKey || ke.defaultPrevented) return;
|
|
4388
|
+
ke.preventDefault();
|
|
4389
|
+
smartTab(field);
|
|
4390
|
+
});
|
|
4391
|
+
}
|
|
4373
4392
|
function splitRecipients(s) {
|
|
4374
4393
|
const raw = [];
|
|
4375
4394
|
let cur = "", inQuote = false;
|
|
@@ -5083,10 +5102,15 @@ document.getElementById("btn-attach")?.addEventListener("click", () => {
|
|
|
5083
5102
|
var wordEditId = null;
|
|
5084
5103
|
var extEditHintClose = null;
|
|
5085
5104
|
{
|
|
5086
|
-
|
|
5105
|
+
let parentPlatform;
|
|
5106
|
+
try {
|
|
5107
|
+
parentPlatform = window.parent?.mailxapi?.platform;
|
|
5108
|
+
} catch {
|
|
5109
|
+
}
|
|
5110
|
+
const isAndroid = /Android/i.test(navigator.userAgent) || window.mailxapi?.platform === "android" || parentPlatform === "android";
|
|
5087
5111
|
if (isAndroid) {
|
|
5088
5112
|
const btn = document.getElementById("btn-edit-in-word");
|
|
5089
|
-
if (btn) btn.
|
|
5113
|
+
if (btn) btn.style.display = "none";
|
|
5090
5114
|
}
|
|
5091
5115
|
}
|
|
5092
5116
|
document.getElementById("btn-edit-in-word")?.addEventListener("click", async () => {
|