diff --git a/app/assets/javascripts/discourse/components/keyboard_shortcuts_component.js b/app/assets/javascripts/discourse/components/keyboard_shortcuts_component.js index 7569b00fa..494196131 100644 --- a/app/assets/javascripts/discourse/components/keyboard_shortcuts_component.js +++ b/app/assets/javascripts/discourse/components/keyboard_shortcuts_component.js @@ -127,7 +127,13 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({ if ($article.size() > 0) { $articles.removeClass('selected'); $article.addClass('selected'); - this._scrollList($article); + + var rgx = new RegExp("post-cloak-(\\d+)").exec($article.parent()[0].id); + if (rgx === null || typeof rgx[1] === 'undefined') { + this._scrollList($article); + } else { + Discourse.TopicView.jumpToPost(rgx[1]); + } } },