mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
Finally drop the FolderModel.hidden() because FolderModel.visible() works better
This commit is contained in:
parent
f56102dd88
commit
a219509bd7
4 changed files with 4 additions and 10 deletions
|
|
@ -124,7 +124,7 @@ export class MailFolderList extends AbstractViewLeft {
|
|||
|
||||
addShortcut('arrowup,arrowdown', '', Scope.FolderList, event => {
|
||||
let items = [], index = 0;
|
||||
dom.querySelectorAll('li a:not(.hidden)').forEach(node => {
|
||||
dom.querySelectorAll('li a').forEach(node => {
|
||||
if (node.offsetHeight || node.getClientRects().length) {
|
||||
items.push(node);
|
||||
if (node.matches('.focused')) {
|
||||
|
|
@ -147,7 +147,7 @@ export class MailFolderList extends AbstractViewLeft {
|
|||
});
|
||||
|
||||
addShortcut('enter,open', '', Scope.FolderList, () => {
|
||||
const item = qs('li a:not(.hidden).focused');
|
||||
const item = qs('li a.focused');
|
||||
if (item) {
|
||||
AppUserStore.focusedState(Scope.MessageList);
|
||||
item.click();
|
||||
|
|
@ -157,7 +157,7 @@ export class MailFolderList extends AbstractViewLeft {
|
|||
});
|
||||
|
||||
addShortcut('space', '', Scope.FolderList, () => {
|
||||
const item = qs('li a:not(.hidden).focused'),
|
||||
const item = qs('li a.focused'),
|
||||
folder = item && ko.dataFor(item);
|
||||
if (folder) {
|
||||
const collapsed = folder.collapsed();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue