mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 07:54: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:
@ -4157,6 +4157,16 @@ const newMailboxView = (xmb: api.Mailbox, mailboxlistView: MailboxlistView, othe
|
||||
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