diff --git a/src/components/views/messages/MessageActionBar.tsx b/src/components/views/messages/MessageActionBar.tsx index d0e259f8879..d71638bcd02 100644 --- a/src/components/views/messages/MessageActionBar.tsx +++ b/src/components/views/messages/MessageActionBar.tsx @@ -43,6 +43,8 @@ import ReactionPicker from "../emojipicker/ReactionPicker"; import { CardContext } from '../right_panel/BaseCard'; import { showThread } from "../../../dispatcher/dispatch-actions/threads"; import { shouldDisplayReply } from '../../../utils/Reply'; +import { Key } from "../../../Keyboard"; +import { ALTERNATE_KEY_NAME } from "../../../accessibility/KeyboardShortcuts"; interface IOptionsButtonProps { mxEvent: MatrixEvent; @@ -382,9 +384,18 @@ export default class MessageActionBar extends React.PureComponent +
+ { this.props.isQuoteExpanded ? _t("Collapse quotes") : _t("Expand quotes") } +
+
+ { _t(ALTERNATE_KEY_NAME[Key.SHIFT]) + " + " + _t("Click") } +
+ ; toolbarOpts.push(); diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 4f7f7cdf04e..8f7c2d14ae0 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -2103,8 +2103,9 @@ "Edit": "Edit", "Reply in thread": "Reply in thread", "Reply": "Reply", - "Collapse quotes │ ⇧+click": "Collapse quotes │ ⇧+click", - "Expand quotes │ ⇧+click": "Expand quotes │ ⇧+click", + "Collapse quotes": "Collapse quotes", + "Expand quotes": "Expand quotes", + "Click": "Click", "Download %(text)s": "Download %(text)s", "Error decrypting attachment": "Error decrypting attachment", "Decrypt %(text)s": "Decrypt %(text)s",