Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Commit dc7eed4

Browse files
author
the-djmaze
committed
Resolve #1780
1 parent 198cc85 commit dc7eed4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

dev/View/User/MailBox/MessageView.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ import {
2020
fireEvent,
2121
stopEvent,
2222
addShortcut,
23-
registerShortcut
23+
registerShortcut,
24+
formFieldFocused
2425
} from 'Common/Globals';
2526

2627
import { arrayLength } from 'Common/Utils';
@@ -467,8 +468,10 @@ export class MailMessageView extends AbstractViewRight {
467468
});
468469

469470
addShortcut('b', 'shift', [ScopeMessageList, ScopeMessageView], () => {
470-
currentMessage()?.swapColors?.();
471-
return false;
471+
if (!formFieldFocused()) {
472+
currentMessage()?.swapColors?.();
473+
return false;
474+
}
472475
});
473476

474477
addShortcut('arrowup,arrowleft', 'meta', [ScopeMessageList, ScopeMessageView], () => {

0 commit comments

Comments
 (0)