BUGFIX: don't move selection when nothing is selected
This commit is contained in:
parent
87dd681497
commit
871f2113e4
|
@ -213,6 +213,8 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({
|
||||||
if(index >= $articles.length){
|
if(index >= $articles.length){
|
||||||
index = $articles.length - 1;
|
index = $articles.length - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
direction = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
var $article = $articles.eq(index + direction);
|
var $article = $articles.eq(index + direction);
|
||||||
|
|
Loading…
Reference in New Issue