From 68e807f791a24512decea4c82b61abba16548142 Mon Sep 17 00:00:00 2001 From: cpradio Date: Fri, 29 Aug 2014 19:14:42 -0400 Subject: [PATCH] UX: Add keyboard binding for reply as new topic --- app/assets/javascripts/discourse/lib/keyboard_shortcuts.js | 3 ++- .../templates/modal/keyboard_shortcuts_help.js.handlebars | 1 + config/locales/client.en.yml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/lib/keyboard_shortcuts.js b/app/assets/javascripts/discourse/lib/keyboard_shortcuts.js index 991879ba00e..619b81300f3 100644 --- a/app/assets/javascripts/discourse/lib/keyboard_shortcuts.js +++ b/app/assets/javascripts/discourse/lib/keyboard_shortcuts.js @@ -22,7 +22,8 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({ 'e': 'editPost', 'l': 'toggleLike', 'r': 'replyToPost', - '!': 'showFlags' + '!': 'showFlags', + 't': 'replyAsNewTopic' }, CLICK_BINDINGS: { diff --git a/app/assets/javascripts/discourse/templates/modal/keyboard_shortcuts_help.js.handlebars b/app/assets/javascripts/discourse/templates/modal/keyboard_shortcuts_help.js.handlebars index 76617712dce..68aa8f2f28c 100644 --- a/app/assets/javascripts/discourse/templates/modal/keyboard_shortcuts_help.js.handlebars +++ b/app/assets/javascripts/discourse/templates/modal/keyboard_shortcuts_help.js.handlebars @@ -36,6 +36,7 @@
  • {{{i18n keyboard_shortcuts_help.actions.star}}}
  • {{{i18n keyboard_shortcuts_help.actions.share_topic}}}
  • {{{i18n keyboard_shortcuts_help.actions.share_post}}}
  • +
  • {{{i18n keyboard_shortcuts_help.actions.reply_as_new_topic}}}
  • {{{i18n keyboard_shortcuts_help.actions.reply_topic}}}
  • {{{i18n keyboard_shortcuts_help.actions.reply_post}}}
  • {{{i18n keyboard_shortcuts_help.actions.quote_post}}}
  • diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 6aa10ffd563..a12017374ba 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -2063,6 +2063,7 @@ en: star: 'f Star topic' share_topic: 'shift s Share topic' share_post: 's Share post' + reply_as_new_topic: 't Reply as new topic' reply_topic: 'shift r Reply to topic' reply_post: 'r Reply to post' quote_post: 'q Quote post'