Rename inbox() to mailbox() because we select any mailbox folder

This commit is contained in:
djmaze 2021-02-12 14:56:16 +01:00
parent 65e9deda2a
commit 997e0561ad
5 changed files with 11 additions and 21 deletions

View file

@ -149,7 +149,7 @@ export function themePreviewLink(theme) {
* @param {string} inboxFolderName = 'INBOX'
* @returns {string}
*/
export function inbox(inboxFolderName = 'INBOX') {
export function mailbox(inboxFolderName = 'INBOX') {
return HASH_PREFIX + 'mailbox/' + inboxFolderName;
}

View file

@ -359,15 +359,11 @@ export class Selector {
if (result) {
this.focusedItem(result);
if (focused) {
if (bShiftKey && isArrow) {
focused.checked(!focused.checked());
} else if (' ' === sEventKey) {
focused.checked(!focused.checked());
}
if (focused && ((bShiftKey && isArrow) || ' ' === sEventKey)) {
focused.checked(!focused.checked());
}
if ((this.autoSelect() || !!bForceSelect) && !this.isListChecked() && ' ' !== sEventKey) {
if (' ' !== sEventKey && (this.autoSelect() || !!bForceSelect) && !this.isListChecked()) {
this.selectedItem(result);
}