diff --git a/app/assets/javascripts/posts.js b/app/assets/javascripts/posts.js
index 6f9997872..67ebd3c7f 100644
--- a/app/assets/javascripts/posts.js
+++ b/app/assets/javascripts/posts.js
@@ -110,6 +110,11 @@
Danbooru.Post.nav_next();
e.preventDefault();
});
+
+ $(document).bind("keydown.f", function(e) {
+ $("#add-to-favorites").filter(":visible").trigger("click");
+ e.preventDefault();
+ });
}
$(document).bind("keydown.s", function(e) {
diff --git a/app/views/posts/partials/show/_options.html.erb b/app/views/posts/partials/show/_options.html.erb
index d73f845bb..8b89a453d 100644
--- a/app/views/posts/partials/show/_options.html.erb
+++ b/app/views/posts/partials/show/_options.html.erb
@@ -1,12 +1,12 @@
- <%= link_to "Resize to window", "#", :id => "image-resize-to-window-link" %>
- - <%= link_to "Favorite", favorites_path(:post_id => post.id), :remote => true, :method => :post, :id => "add-to-favorites" %>
+ - <%= link_to "Favorite", favorites_path(:post_id => post.id), :remote => true, :method => :post, :id => "add-to-favorites", :title => "Shortcut is F" %>
- <%= link_to "Unfavorite", favorite_path(post), :remote => true, :method => :delete, :id => "remove-from-favorites" %>
- <%= link_to "Add to pool", "#", :id => "pool" %>
<% if post.is_note_locked? %>
- Note locked
<% else %>
- - <%= link_to "Add note", "#", :id => "translate", :title => "Shortcut is CTRL+N" %>
+ - <%= link_to "Add note", "#", :id => "translate", :title => "Shortcut is N" %>
<% end %>
- <%= link_to "Find similar", "http://danbooru.iqdb.org/db-search.php?url=http://#{Danbooru.config.hostname}#{post.preview_file_url}" %>
diff --git a/app/views/static/keyboard_shortcuts.html.erb b/app/views/static/keyboard_shortcuts.html.erb
index ada8fa0fb..cad92851d 100644
--- a/app/views/static/keyboard_shortcuts.html.erb
+++ b/app/views/static/keyboard_shortcuts.html.erb
@@ -21,6 +21,7 @@
- s Scroll down
- a Previous post
- d Next post
+ - f Favorite post