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+up",
"alt+down", "alt+down",
], function(e, keys) { ], 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 index = channels.index(channels.filter(".active"));
const direction = keys.split("+").pop(); const direction = keys.split("+").pop();
let target; let target;