Fix Alt+Up/Down cycling through channels of collapsed networks

This commit is contained in:
Raqbit 2018-04-26 10:10:41 +02:00
parent db4661339a
commit e2e6fe2533

View File

@ -41,7 +41,7 @@ Mousetrap.bind([
"alt+up",
"alt+down",
], function(e, keys) {
const channels = sidebar.find(".chan");
const channels = sidebar.find(".chan").not(".network.collapsed :not(.lobby)");
const index = channels.index(channels.filter(".active"));
const direction = keys.split("+").pop();
let target;