mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 20:08:26 +00:00
Merge pull request #3906 from tgxworld/fix_quote_post_shortcut
FIX: Keyboard shortcut to quote reply.
This commit is contained in:
commit
c7aaa56918
@ -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…
x
Reference in New Issue
Block a user