* [PATCH pmg-gui v2] spam quarantine: add keyboard shortcut for mark-unseen action
@ 2026-06-09 10:54 Dominik Csapak
2026-06-09 16:27 ` applied: " Thomas Lamprecht
0 siblings, 1 reply; 2+ messages in thread
From: Dominik Csapak @ 2026-06-09 10:54 UTC (permalink / raw)
To: pmg-devel
Since 'S' is for mark Seen, use 'U' for mark Unseen.
Document it in the help page for the qurantine view.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
changes from v1:
* include documentation in the help page
js/QuarantineViewAbout.js | 1 +
js/SpamQuarantine.js | 4 ++++
2 files changed, 5 insertions(+)
diff --git a/js/QuarantineViewAbout.js b/js/QuarantineViewAbout.js
index 2729420..0ad32c7 100644
--- a/js/QuarantineViewAbout.js
+++ b/js/QuarantineViewAbout.js
@@ -44,6 +44,7 @@ delete the selected email, or use the following keyboard shortcuts instead:
* <kbd>B</kbd>: Add the sender to the Blocklist.
* <kbd>W</kbd>: Add the sender to the Welcomelist.
* <kbd>S</kbd>: Mark the mail as "seen".
+* <kbd>U</kbd>: Mark the mail as "unseen".
`,
),
});
diff --git a/js/SpamQuarantine.js b/js/SpamQuarantine.js
index 4be8f8e..bdca787 100644
--- a/js/SpamQuarantine.js
+++ b/js/SpamQuarantine.js
@@ -206,6 +206,10 @@ Ext.define('PMG.SpamQuarantineController', {
case Ext.event.Event.S + 32:
action = 'mark-seen';
break;
+ case Ext.event.Event.U:
+ case Ext.event.Event.U + 32:
+ action = 'mark-unseen';
+ break;
}
if (action !== '') {
--
2.47.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* applied: [PATCH pmg-gui v2] spam quarantine: add keyboard shortcut for mark-unseen action
2026-06-09 10:54 [PATCH pmg-gui v2] spam quarantine: add keyboard shortcut for mark-unseen action Dominik Csapak
@ 2026-06-09 16:27 ` Thomas Lamprecht
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2026-06-09 16:27 UTC (permalink / raw)
To: pmg-devel, Dominik Csapak
On Tue, 09 Jun 2026 12:54:50 +0200, Dominik Csapak wrote:
> Since 'S' is for mark Seen, use 'U' for mark Unseen.
> Document it in the help page for the qurantine view.
Applied, thanks! I then decided to reuse the same S shortcut later to mirror
the toggle-button behavior this is displayed as, still kept yours for
posterity, as it did not hurt to have that in the git history IMO.
[1/1] spam quarantine: add keyboard shortcut for mark-unseen action
commit: 9d5de7d6a41a76254e1eead4c8e80ec63e71863d
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-06-09 16:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-09 10:54 [PATCH pmg-gui v2] spam quarantine: add keyboard shortcut for mark-unseen action Dominik Csapak
2026-06-09 16:27 ` applied: " Thomas Lamprecht
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox