mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
Add quote post
This commit is contained in:
parent
2d9db9ebc9
commit
4b4d775ad9
@ -48,7 +48,8 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({
|
|||||||
'`': 'nextSection',
|
'`': 'nextSection',
|
||||||
'~': 'prevSection',
|
'~': 'prevSection',
|
||||||
'/': 'showSearch',
|
'/': 'showSearch',
|
||||||
'?': 'showHelpModal' // open keyboard shortcut help
|
'?': 'showHelpModal', // open keyboard shortcut help
|
||||||
|
'q': 'quoteReply'
|
||||||
},
|
},
|
||||||
|
|
||||||
bindEvents: function(keyTrapper) {
|
bindEvents: function(keyTrapper) {
|
||||||
@ -58,6 +59,14 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({
|
|||||||
_.each(this.FUNCTION_BINDINGS, this._bindToFunction, this);
|
_.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() {
|
goToFirstPost: function() {
|
||||||
this._jumpTo('jumpTop');
|
this._jumpTo('jumpTop');
|
||||||
},
|
},
|
||||||
|
@ -35,6 +35,7 @@
|
|||||||
<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_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.like}}}</li>
|
<li>{{{i18n keyboard_shortcuts_help.actions.like}}}</li>
|
||||||
<li>{{{i18n keyboard_shortcuts_help.actions.flag}}}</li>
|
<li>{{{i18n keyboard_shortcuts_help.actions.flag}}}</li>
|
||||||
<li>{{{i18n keyboard_shortcuts_help.actions.bookmark}}}</li>
|
<li>{{{i18n keyboard_shortcuts_help.actions.bookmark}}}</li>
|
||||||
|
@ -1837,6 +1837,7 @@ en:
|
|||||||
share_post: '<b>s</b> Share post'
|
share_post: '<b>s</b> Share post'
|
||||||
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'
|
||||||
like: '<b>l</b> Like post'
|
like: '<b>l</b> Like post'
|
||||||
flag: '<b>!</b> Flag post'
|
flag: '<b>!</b> Flag post'
|
||||||
bookmark: '<b>b</b> Bookmark post'
|
bookmark: '<b>b</b> Bookmark post'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user