1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-20 16:22:28 +03:00

Implement shift-click and ctrl-click semantics for TP

This commit is contained in:
Luke Barnard
2017-11-30 14:48:54 +00:00
parent 7118f7a38f
commit 3bcb3195c4
2 changed files with 61 additions and 5 deletions

View File

@@ -50,6 +50,8 @@ const TagTile = React.createClass({
dis.dispatch({
action: 'select_tag',
tag: this.props.groupProfile.groupId,
ctrlOrCmdKey: e.metaKey || e.ctrlKey,
shiftKey: e.shiftKey,
});
},
@@ -148,6 +150,10 @@ export default React.createClass({
const joinedGroupProfiles = await Promise.all(joinedGroupIds.map(
(groupId) => FlairStore.getGroupProfileCached(this.context.matrixClient, groupId),
));
dis.dispatch({
action: 'all_tags',
tags: joinedGroupIds,
});
this.setState({joinedGroupProfiles});
},