mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 03:43:15 +08:00
FIX: Keyboard shortcut to quote reply.
This commit is contained in:
parent
3053d48671
commit
8d1636db2b
|
@ -97,10 +97,10 @@ export default {
|
|||
},
|
||||
|
||||
quoteReply() {
|
||||
$('.topic-post.selected button.create').click();
|
||||
this._replyToPost();
|
||||
// lazy but should work for now
|
||||
setTimeout(function() {
|
||||
$('.wmd-quote-post').click();
|
||||
$('.d-editor .quote').click();
|
||||
}, 500);
|
||||
},
|
||||
|
||||
|
@ -119,7 +119,7 @@ export default {
|
|||
},
|
||||
|
||||
replyToTopic() {
|
||||
this.container.lookup('controller:topic').send('replyToPost');
|
||||
this._replyToPost();
|
||||
},
|
||||
|
||||
selectDown() {
|
||||
|
@ -377,5 +377,9 @@ export default {
|
|||
}
|
||||
return oldStopCallback.call(this, e, element, combo, sequence);
|
||||
};
|
||||
},
|
||||
|
||||
_replyToPost() {
|
||||
this.container.lookup('controller:topic').send('replyToPost');
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user