mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Resolve #1780
This commit is contained in:
parent
198cc852c3
commit
dc7eed4c80
1 changed files with 6 additions and 3 deletions
|
|
@ -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], () => {
|
||||||
currentMessage()?.swapColors?.();
|
if (!formFieldFocused()) {
|
||||||
return false;
|
currentMessage()?.swapColors?.();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
addShortcut('arrowup,arrowleft', 'meta', [ScopeMessageList, ScopeMessageView], () => {
|
addShortcut('arrowup,arrowleft', 'meta', [ScopeMessageList, ScopeMessageView], () => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue