Merge pull request #3812 from evazion/feat-declarative-shortcuts

Add declarative keyboard shortcuts
This commit is contained in:
Albert Yi
2018-08-13 18:08:31 -07:00
committed by GitHub
26 changed files with 80 additions and 259 deletions

View File

@@ -17,7 +17,7 @@
<ul id="related-list">
<li><%= link_to "Deleted posts", posts_path(:tags => "#{@favorite_set.tag_string} status:deleted"), :rel => "nofollow" %></li>
<li><%= link_to "Random post", random_posts_path(:tags => @favorite_set.tag_string), :id => "random-post", :rel => "nofollow" %></li>
<li><%= link_to "Random post", random_posts_path(:tags => @favorite_set.tag_string), :id => "random-post", :rel => "nofollow", :"data-shortcut" => "r" %></li>
</ul>
</section>
</aside>