Merge pull request #3866 from cpradio/fix-broken-keyboard-shortcuts

FIX: Fix the shortcuts shift+j and shift+k
This commit is contained in:
Régis Hanol 2015-10-20 15:21:29 +02:00
commit 227689d77b

View file

@ -358,8 +358,8 @@ export default {
},
_changeSection(direction) {
const $sections = $('#navigation-bar li'),
active = $('#navigation-bar li.active'),
const $sections = $('.nav.nav-pills li'),
active = $('.nav.nav-pills li.active'),
index = $sections.index(active) + direction;
if (index >= 0 && index < $sections.length) {