Merge pull request #2388 from Raqbit/master

Fix Alt+Up/Down cycling through channels of collapsed networks
This commit is contained in:
Pavel Djundik 2018-06-02 13:49:19 +03:00 committed by GitHub
commit 4824a2b535
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;