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