Implement shift-click and ctrl-click semantics for TP
This commit is contained in:
parent
7118f7a38f
commit
3bcb3195c4
2 changed files with 61 additions and 5 deletions
|
@ -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});
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue