Add quote post
This commit is contained in:
parent
2d9db9ebc9
commit
4b4d775ad9
|
@ -48,7 +48,8 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({
|
|||
'`': 'nextSection',
|
||||
'~': 'prevSection',
|
||||
'/': 'showSearch',
|
||||
'?': 'showHelpModal' // open keyboard shortcut help
|
||||
'?': 'showHelpModal', // open keyboard shortcut help
|
||||
'q': 'quoteReply'
|
||||
},
|
||||
|
||||
bindEvents: function(keyTrapper) {
|
||||
|
@ -58,6 +59,14 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({
|
|||
_.each(this.FUNCTION_BINDINGS, this._bindToFunction, this);
|
||||
},
|
||||
|
||||
quoteReply: function(){
|
||||
$('.topic-post.selected button.create').click();
|
||||
// lazy but should work for now
|
||||
setTimeout(function(){
|
||||
$('#wmd-quote-post').click();
|
||||
}, 500);
|
||||
},
|
||||
|
||||
goToFirstPost: function() {
|
||||
this._jumpTo('jumpTop');
|
||||
},
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
<li>{{{i18n keyboard_shortcuts_help.actions.share_post}}}</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>
|
||||
<li>{{{i18n keyboard_shortcuts_help.actions.like}}}</li>
|
||||
<li>{{{i18n keyboard_shortcuts_help.actions.flag}}}</li>
|
||||
<li>{{{i18n keyboard_shortcuts_help.actions.bookmark}}}</li>
|
||||
|
|
|
@ -1837,6 +1837,7 @@ en:
|
|||
share_post: '<b>s</b> Share post'
|
||||
reply_topic: '<b>shift r</b> Reply to topic'
|
||||
reply_post: '<b>r</b> Reply to post'
|
||||
quote_post: '<b>q</b> Quote post'
|
||||
like: '<b>l</b> Like post'
|
||||
flag: '<b>!</b> Flag post'
|
||||
bookmark: '<b>b</b> Bookmark post'
|
||||
|
|
Loading…
Reference in New Issue