File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
components/views/messages Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ import ReactionPicker from "../emojipicker/ReactionPicker";
4343import { CardContext } from '../right_panel/BaseCard' ;
4444import { showThread } from "../../../dispatcher/dispatch-actions/threads" ;
4545import { shouldDisplayReply } from '../../../utils/Reply' ;
46+ import { Key } from "../../../Keyboard" ;
47+ import { ALTERNATE_KEY_NAME } from "../../../accessibility/KeyboardShortcuts" ;
4648
4749interface IOptionsButtonProps {
4850 mxEvent : MatrixEvent ;
@@ -382,9 +384,18 @@ export default class MessageActionBar extends React.PureComponent<IMessageAction
382384 'mx_MessageActionBar_expandMessageButton' : ! this . props . isQuoteExpanded ,
383385 'mx_MessageActionBar_collapseMessageButton' : this . props . isQuoteExpanded ,
384386 } ) ;
387+ const tooltip = < div >
388+ < div className = "mx_Tooltip_title" >
389+ { this . props . isQuoteExpanded ? _t ( "Collapse quotes" ) : _t ( "Expand quotes" ) }
390+ </ div >
391+ < div className = "mx_Tooltip_sub" >
392+ { _t ( ALTERNATE_KEY_NAME [ Key . SHIFT ] ) + " + " + _t ( "Click" ) }
393+ </ div >
394+ </ div > ;
385395 toolbarOpts . push ( < RovingAccessibleTooltipButton
386396 className = { expandClassName }
387- title = { this . props . isQuoteExpanded ? _t ( "Collapse quotes │ ⇧+click" ) : _t ( "Expand quotes │ ⇧+click" ) }
397+ title = { this . props . isQuoteExpanded ? _t ( "Collapse quotes" ) : _t ( "Expand quotes" ) }
398+ tooltip = { tooltip }
388399 onClick = { this . props . toggleThreadExpanded }
389400 key = "expand"
390401 /> ) ;
Original file line number Diff line number Diff line change 21042104 "Edit" : " Edit" ,
21052105 "Reply in thread" : " Reply in thread" ,
21062106 "Reply" : " Reply" ,
2107- "Collapse quotes │ ⇧+click" : " Collapse quotes │ ⇧+click" ,
2108- "Expand quotes │ ⇧+click" : " Expand quotes │ ⇧+click" ,
2107+ "Collapse quotes" : " Collapse quotes" ,
2108+ "Expand quotes" : " Expand quotes" ,
2109+ "Click" : " Click" ,
21092110 "Download %(text)s" : " Download %(text)s" ,
21102111 "Error decrypting attachment" : " Error decrypting attachment" ,
21112112 "Decrypt %(text)s" : " Decrypt %(text)s" ,
You can’t perform that action at this time.
0 commit comments