UX: Add keyboard binding for reply as new topic

This commit is contained in:
cpradio 2014-08-29 19:14:42 -04:00
parent 1291e94c78
commit 68e807f791
3 changed files with 4 additions and 1 deletions

View file

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

View file

@ -36,6 +36,7 @@
<li>{{{i18n keyboard_shortcuts_help.actions.star}}}</li> <li>{{{i18n keyboard_shortcuts_help.actions.star}}}</li>
<li>{{{i18n keyboard_shortcuts_help.actions.share_topic}}}</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.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_topic}}}</li>
<li>{{{i18n keyboard_shortcuts_help.actions.reply_post}}}</li> <li>{{{i18n keyboard_shortcuts_help.actions.reply_post}}}</li>
<li>{{{i18n keyboard_shortcuts_help.actions.quote_post}}}</li> <li>{{{i18n keyboard_shortcuts_help.actions.quote_post}}}</li>

View file

@ -2063,6 +2063,7 @@ en:
star: '<b>f</b> Star topic' star: '<b>f</b> Star topic'
share_topic: '<b>shift s</b> Share topic' share_topic: '<b>shift s</b> Share topic'
share_post: '<b>s</b> Share post' 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_topic: '<b>shift r</b> Reply to topic'
reply_post: '<b>r</b> Reply to post' reply_post: '<b>r</b> Reply to post'
quote_post: '<b>q</b> Quote post' quote_post: '<b>q</b> Quote post'