This commit is contained in:
the-djmaze 2024-09-29 12:01:28 +02:00
parent 198cc852c3
commit dc7eed4c80

View file

@ -20,7 +20,8 @@ import {
fireEvent, fireEvent,
stopEvent, stopEvent,
addShortcut, addShortcut,
registerShortcut registerShortcut,
formFieldFocused
} from 'Common/Globals'; } from 'Common/Globals';
import { arrayLength } from 'Common/Utils'; import { arrayLength } from 'Common/Utils';
@ -467,8 +468,10 @@ export class MailMessageView extends AbstractViewRight {
}); });
addShortcut('b', 'shift', [ScopeMessageList, ScopeMessageView], () => { addShortcut('b', 'shift', [ScopeMessageList, ScopeMessageView], () => {
if (!formFieldFocused()) {
currentMessage()?.swapColors?.(); currentMessage()?.swapColors?.();
return false; return false;
}
}); });
addShortcut('arrowup,arrowleft', 'meta', [ScopeMessageList, ScopeMessageView], () => { addShortcut('arrowup,arrowleft', 'meta', [ScopeMessageList, ScopeMessageView], () => {