[Glitch] Add hotkey Q for quoting the currently focused post

Port 229cbc6a24 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
diondiondion authored and Claire committed 2025-08-28 20:36:00 +02:00
1 parent c1159fa712
commit 5db1bbef69
6 files changed
+33 -1

No files matched your search

@@ -95,6 +95,7 @@ class Status extends ImmutablePureComponent {
onReply: PropTypes.func,
onFavourite: PropTypes.func,
onReblog: PropTypes.func,
onQuote: PropTypes.func,
onBookmark: PropTypes.func,
onDelete: PropTypes.func,
onDirect: PropTypes.func,
@@ -359,6 +360,10 @@ class Status extends ImmutablePureComponent {
this.props.onBookmark(this.props.status, e);
};
handleHotkeyQuote = () => {
this.props.onQuote(this._properStatus());
};
handleHotkeyMention = e => {
e.preventDefault();
this.props.onMention(this.props.status.get('account'));
@@ -479,6 +484,7 @@ class Status extends ImmutablePureComponent {
reply: this.handleHotkeyReply,
favourite: this.handleHotkeyFavourite,
boost: this.handleHotkeyBoost,
quote: this.handleHotkeyQuote,
mention: this.handleHotkeyMention,
open: this.handleHotkeyOpen,
openProfile: this.handleHotkeyOpenProfile,