Merge pull request #2724 from cpradio/key-binding-reply-new-topic

UX: Add keyboard binding for reply as new topic
This commit is contained in:
Jeff Atwood 2014-08-29 16:46:34 -07:00
commit cb45d5fa25
3 changed files with 4 additions and 1 deletions

View File

@ -22,7 +22,8 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({
'e': 'editPost',
'l': 'toggleLike',
'r': 'replyToPost',
'!': 'showFlags'
'!': 'showFlags',
't': 'replyAsNewTopic'
},
CLICK_BINDINGS: {

View File

@ -39,6 +39,7 @@
<li>{{{i18n keyboard_shortcuts_help.actions.star}}}</li>
<li>{{{i18n keyboard_shortcuts_help.actions.share_topic}}}</li>
<li>{{{i18n keyboard_shortcuts_help.actions.share_post}}}</li>
<li>{{{i18n keyboard_shortcuts_help.actions.reply_as_new_topic}}}</li>
<li>{{{i18n keyboard_shortcuts_help.actions.reply_topic}}}</li>
<li>{{{i18n keyboard_shortcuts_help.actions.reply_post}}}</li>
<li>{{{i18n keyboard_shortcuts_help.actions.quote_post}}}</li>

View File

@ -2066,6 +2066,7 @@ en:
star: '<b>f</b> Star topic'
share_topic: '<b>shift s</b> Share topic'
share_post: '<b>s</b> Share post'
reply_as_new_topic: '<b>t</b> Reply as new topic'
reply_topic: '<b>shift r</b> Reply to topic'
reply_post: '<b>r</b> Reply to post'
quote_post: '<b>q</b> Quote post'