mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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){
|
||||
index = $articles.length - 1;
|
||||
}
|
||||
|
||||
direction = 0;
|
||||
}
|
||||
|
||||
var $article = $articles.eq(index + direction);
|
||||
|
Loading…
Reference in New Issue
Block a user