mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 07:14:40 +03:00
webmail: make double click on mailbox expand/collapse, and make mailbox text unselectable (so the double click doesn't also select text)
This commit is contained in:
@ -4300,6 +4300,16 @@ const newMailboxView = (xmb, mailboxlistView, otherMailbox) => {
|
||||
else if (e.key === 'b') {
|
||||
cmdOpenActions();
|
||||
}
|
||||
}, async function dblclick() {
|
||||
if (mailboxlistView.mailboxLeaf(mbv)) {
|
||||
return;
|
||||
}
|
||||
if (settings.mailboxCollapsed[mbv.mailbox.ID]) {
|
||||
cmdExpand();
|
||||
}
|
||||
else {
|
||||
cmdCollapse();
|
||||
}
|
||||
}, async function click() {
|
||||
mbv.root.focus();
|
||||
await withStatus('Opening mailbox', mbv.open(true));
|
||||
|
Reference in New Issue
Block a user