This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree 2 files changed +15
-3
lines changed
components/views/messages 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";
43
43
import { CardContext } from '../right_panel/BaseCard' ;
44
44
import { showThread } from "../../../dispatcher/dispatch-actions/threads" ;
45
45
import { shouldDisplayReply } from '../../../utils/Reply' ;
46
+ import { Key } from "../../../Keyboard" ;
47
+ import { ALTERNATE_KEY_NAME } from "../../../accessibility/KeyboardShortcuts" ;
46
48
47
49
interface IOptionsButtonProps {
48
50
mxEvent : MatrixEvent ;
@@ -382,9 +384,18 @@ export default class MessageActionBar extends React.PureComponent<IMessageAction
382
384
'mx_MessageActionBar_expandMessageButton' : ! this . props . isQuoteExpanded ,
383
385
'mx_MessageActionBar_collapseMessageButton' : this . props . isQuoteExpanded ,
384
386
} ) ;
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 > ;
385
395
toolbarOpts . push ( < RovingAccessibleTooltipButton
386
396
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 }
388
399
onClick = { this . props . toggleThreadExpanded }
389
400
key = "expand"
390
401
/> ) ;
Original file line number Diff line number Diff line change 2104
2104
"Edit" : " Edit" ,
2105
2105
"Reply in thread" : " Reply in thread" ,
2106
2106
"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" ,
2109
2110
"Download %(text)s" : " Download %(text)s" ,
2110
2111
"Error decrypting attachment" : " Error decrypting attachment" ,
2111
2112
"Decrypt %(text)s" : " Decrypt %(text)s" ,
You can’t perform that action at this time.
0 commit comments