mirror of
https://github.com/discourse/discourse.git
synced 2025-02-18 01:05:00 +00:00
Merge pull request #3866 from cpradio/fix-broken-keyboard-shortcuts
FIX: Fix the shortcuts shift+j and shift+k
This commit is contained in:
commit
227689d77b
@ -358,8 +358,8 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_changeSection(direction) {
|
_changeSection(direction) {
|
||||||
const $sections = $('#navigation-bar li'),
|
const $sections = $('.nav.nav-pills li'),
|
||||||
active = $('#navigation-bar li.active'),
|
active = $('.nav.nav-pills li.active'),
|
||||||
index = $sections.index(active) + direction;
|
index = $sections.index(active) + direction;
|
||||||
|
|
||||||
if (index >= 0 && index < $sections.length) {
|
if (index >= 0 && index < $sections.length) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user