mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-11 00:14:50 +03:00
dispatchEvent(new CustomEvent(...)) to fireEvent(...)
This commit is contained in:
parent
2d46eaa783
commit
44ee236709
9 changed files with 25 additions and 21 deletions
|
|
@ -23,7 +23,8 @@ import {
|
|||
Settings,
|
||||
SettingsCapa,
|
||||
getFullscreenElement,
|
||||
exitFullscreen
|
||||
exitFullscreen,
|
||||
fireEvent
|
||||
} from 'Common/Globals';
|
||||
|
||||
import { arrayLength, inFocus } from 'Common/Utils';
|
||||
|
|
@ -245,15 +246,15 @@ export class MailMessageView extends AbstractViewRight {
|
|||
}
|
||||
|
||||
goUpCommand() {
|
||||
dispatchEvent(new CustomEvent('mailbox.message-list.selector.go-up',
|
||||
{detail:SettingsUserStore.usePreviewPane() || !!currentMessage()} // bForceSelect
|
||||
));
|
||||
fireEvent('mailbox.message-list.selector.go-up',
|
||||
SettingsUserStore.usePreviewPane() || !!currentMessage() // bForceSelect
|
||||
);
|
||||
}
|
||||
|
||||
goDownCommand() {
|
||||
dispatchEvent(new CustomEvent('mailbox.message-list.selector.go-down',
|
||||
{detail:SettingsUserStore.usePreviewPane() || !!currentMessage()} // bForceSelect
|
||||
));
|
||||
fireEvent('mailbox.message-list.selector.go-down',
|
||||
SettingsUserStore.usePreviewPane() || !!currentMessage() // bForceSelect
|
||||
);
|
||||
}
|
||||
|
||||
toggleFullScreen() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue