mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 10:34:40 +03:00
webmail: while attachment viewer is open, don't handle global keyboard shortcuts (like search, going to inbox)
feedback from jonathan, thanks!
This commit is contained in:
@ -3029,10 +3029,6 @@ const newMsglistView = (msgElem, listMailboxes, setLocationHash, otherMailbox, p
|
||||
updateState(oldstate);
|
||||
},
|
||||
key: async (k, e) => {
|
||||
if (attachmentView) {
|
||||
attachmentView.key(k, e);
|
||||
return;
|
||||
}
|
||||
const moveKeys = [
|
||||
' ', 'ArrowUp', 'ArrowDown',
|
||||
'PageUp', 'h', 'H',
|
||||
@ -4228,6 +4224,10 @@ const init = async () => {
|
||||
}
|
||||
l.push(e.key);
|
||||
const k = l.join(' ');
|
||||
if (attachmentView) {
|
||||
attachmentView.key(k, e);
|
||||
return;
|
||||
}
|
||||
if (composeView) {
|
||||
await composeView.key(k, e);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user