diff --git a/app/assets/javascripts/discourse/components/keyboard_shortcuts_component.js b/app/assets/javascripts/discourse/components/keyboard_shortcuts_component.js index e0264e02d..789538f04 100644 --- a/app/assets/javascripts/discourse/components/keyboard_shortcuts_component.js +++ b/app/assets/javascripts/discourse/components/keyboard_shortcuts_component.js @@ -32,10 +32,10 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({ 'm w': 'div.notification-options li[data-id="3"] a', // mark topic as watching 'n': '#user-notifications', // open notifictions menu 'o,enter': '#topic-list tr.topic-list-item.selected a.title', // open selected topic - 'r': '#topic-footer-buttons button.create', // reply to topic - 'R': '.topic-post.selected button.create', // reply to selected post - 's': '#topic-footer-buttons button.share', // share topic - 'S': '.topic-post.selected button.share', // share selected post + 'shift+r': '#topic-footer-buttons button.create', // reply to topic + 'r': '.topic-post.selected button.create', // reply to selected post + 'shift+s': '#topic-footer-buttons button.share', // share topic + 's': '.topic-post.selected button.share', // share selected post '!': '.topic-post.selected button.flag' // flag selected post }, diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index e3caffc41..83b0cd0ea 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -1829,10 +1829,10 @@ en: actions: title: 'Actions' star: 'f Star topic' - share_topic: 's Share topic' - share_post: 'shift s Share post' - reply_topic: 'r Reply to topic' - reply_post: 'shift r Reply to post' + share_topic: 'shift s Share topic' + share_post: 's Share post' + reply_topic: 'shift r Reply to topic' + reply_post: 'r Reply to post' like: 'l Like post' flag: '! Flag post' bookmark: 'b Bookmark post' diff --git a/test/javascripts/components/keyboard_shortcuts_component_test.js b/test/javascripts/components/keyboard_shortcuts_component_test.js index 749a6210c..5d9efbbdb 100644 --- a/test/javascripts/components/keyboard_shortcuts_component_test.js +++ b/test/javascripts/components/keyboard_shortcuts_component_test.js @@ -24,7 +24,7 @@ module("Discourse.KeyboardShortcuts", { sinon.stub(Discourse.URL, "routeTo"); $("#qunit-fixture").html([ - "
", + "
", " ", " ", " ",