mirror of
https://github.com/mjl-/mox.git
synced 2025-01-28 07:15:55 +03:00
webmail: new shortcut "T" for showing html version of email, and t for text version
shortcut X used to be "show html version", but with threading support became "toggle collapse", so there was a clash.
This commit is contained in:
parent
3fb41ff073
commit
bff0131164
2 changed files with 10 additions and 10 deletions
|
@ -1868,8 +1868,8 @@ const cmdHelp = async () => {
|
||||||
['R', 'reply all'],
|
['R', 'reply all'],
|
||||||
['f', 'forward message'],
|
['f', 'forward message'],
|
||||||
['v', 'view attachments'],
|
['v', 'view attachments'],
|
||||||
['T', 'view text version'],
|
['t', 'view text version'],
|
||||||
['X', 'view HTML version'],
|
['T', 'view HTML version'],
|
||||||
['o', 'open message in new tab'],
|
['o', 'open message in new tab'],
|
||||||
['O', 'show raw message'],
|
['O', 'show raw message'],
|
||||||
['ctrl p', 'print message'],
|
['ctrl p', 'print message'],
|
||||||
|
@ -2681,8 +2681,8 @@ const newMsgView = (miv, msglistView, listMailboxes, possibleLabels, messageLoad
|
||||||
r: cmdReply,
|
r: cmdReply,
|
||||||
R: cmdReplyAll,
|
R: cmdReplyAll,
|
||||||
v: cmdViewAttachments,
|
v: cmdViewAttachments,
|
||||||
T: cmdShowText,
|
t: cmdShowText,
|
||||||
X: cmdShowHTMLCycle,
|
T: cmdShowHTMLCycle,
|
||||||
'ctrl I': cmdToggleHeaders,
|
'ctrl I': cmdToggleHeaders,
|
||||||
'alt j': cmdDown,
|
'alt j': cmdDown,
|
||||||
'alt k': cmdUp,
|
'alt k': cmdUp,
|
||||||
|
@ -2923,7 +2923,7 @@ const newMsgView = (miv, msglistView, listMailboxes, possibleLabels, messageLoad
|
||||||
const text = haveText && !settings.showHTML;
|
const text = haveText && !settings.showHTML;
|
||||||
dom._kids(msgmodeElem, dom.div(dom._class('pad'), style({ borderTop: '1px solid #ccc' }), !haveText ? dom.span('HTML-only message', attr.title(htmlNote), style({ backgroundColor: '#ffca91', padding: '0 .15em', marginRight: '.25em' })) : [], dom.span(dom._class('btngroup'), haveText ? textbtn = dom.clickbutton(text ? dom._class('active') : [], 'Text', clickCmd(cmdShowText, shortcuts)) : [], htmlbtn = dom.clickbutton(text ? [] : dom._class('active'), 'HTML', attr.title(htmlNote), async function click() {
|
dom._kids(msgmodeElem, dom.div(dom._class('pad'), style({ borderTop: '1px solid #ccc' }), !haveText ? dom.span('HTML-only message', attr.title(htmlNote), style({ backgroundColor: '#ffca91', padding: '0 .15em', marginRight: '.25em' })) : [], dom.span(dom._class('btngroup'), haveText ? textbtn = dom.clickbutton(text ? dom._class('active') : [], 'Text', clickCmd(cmdShowText, shortcuts)) : [], htmlbtn = dom.clickbutton(text ? [] : dom._class('active'), 'HTML', attr.title(htmlNote), async function click() {
|
||||||
// Shortcuts has a function that cycles through html and htmlexternal.
|
// Shortcuts has a function that cycles through html and htmlexternal.
|
||||||
showShortcut('X');
|
showShortcut('T');
|
||||||
await cmdShowHTML();
|
await cmdShowHTML();
|
||||||
}), htmlextbtn = dom.clickbutton('HTML with external resources', attr.title(htmlNote), clickCmd(cmdShowHTMLExternal, shortcuts)))));
|
}), htmlextbtn = dom.clickbutton('HTML with external resources', attr.title(htmlNote), clickCmd(cmdShowHTMLExternal, shortcuts)))));
|
||||||
if (text) {
|
if (text) {
|
||||||
|
|
|
@ -1014,8 +1014,8 @@ const cmdHelp = async () => {
|
||||||
['R', 'reply all'],
|
['R', 'reply all'],
|
||||||
['f', 'forward message'],
|
['f', 'forward message'],
|
||||||
['v', 'view attachments'],
|
['v', 'view attachments'],
|
||||||
['T', 'view text version'],
|
['t', 'view text version'],
|
||||||
['X', 'view HTML version'],
|
['T', 'view HTML version'],
|
||||||
['o', 'open message in new tab'],
|
['o', 'open message in new tab'],
|
||||||
['O', 'show raw message'],
|
['O', 'show raw message'],
|
||||||
['ctrl p', 'print message'],
|
['ctrl p', 'print message'],
|
||||||
|
@ -2168,8 +2168,8 @@ const newMsgView = (miv: MsgitemView, msglistView: MsglistView, listMailboxes: l
|
||||||
r: cmdReply,
|
r: cmdReply,
|
||||||
R: cmdReplyAll,
|
R: cmdReplyAll,
|
||||||
v: cmdViewAttachments,
|
v: cmdViewAttachments,
|
||||||
T: cmdShowText,
|
t: cmdShowText,
|
||||||
X: cmdShowHTMLCycle,
|
T: cmdShowHTMLCycle,
|
||||||
'ctrl I': cmdToggleHeaders,
|
'ctrl I': cmdToggleHeaders,
|
||||||
|
|
||||||
'alt j': cmdDown,
|
'alt j': cmdDown,
|
||||||
|
@ -2573,7 +2573,7 @@ const newMsgView = (miv: MsgitemView, msglistView: MsglistView, listMailboxes: l
|
||||||
haveText ? textbtn=dom.clickbutton(text ? dom._class('active') : [], 'Text', clickCmd(cmdShowText, shortcuts)) : [],
|
haveText ? textbtn=dom.clickbutton(text ? dom._class('active') : [], 'Text', clickCmd(cmdShowText, shortcuts)) : [],
|
||||||
htmlbtn=dom.clickbutton(text ? [] : dom._class('active'), 'HTML', attr.title(htmlNote), async function click() {
|
htmlbtn=dom.clickbutton(text ? [] : dom._class('active'), 'HTML', attr.title(htmlNote), async function click() {
|
||||||
// Shortcuts has a function that cycles through html and htmlexternal.
|
// Shortcuts has a function that cycles through html and htmlexternal.
|
||||||
showShortcut('X')
|
showShortcut('T')
|
||||||
await cmdShowHTML()
|
await cmdShowHTML()
|
||||||
}),
|
}),
|
||||||
htmlextbtn=dom.clickbutton('HTML with external resources', attr.title(htmlNote), clickCmd(cmdShowHTMLExternal, shortcuts)),
|
htmlextbtn=dom.clickbutton('HTML with external resources', attr.title(htmlNote), clickCmd(cmdShowHTMLExternal, shortcuts)),
|
||||||
|
|
Loading…
Reference in a new issue