Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi everyone.
I wanted to know, how to do multple selection using pressed CTRL button and mouse click, instead of mouse click. I set
Solved! Go to Solution.
Hello @ysapiyev,
You should use something like this (event documentation😞
// event is a mouse event const isCtrlKeyPressed = event.ctrlKey; this.selectionManager.select(d.identity, isCtrlKeyPressed);
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Hello @ysapiyev,
You should use something like this (event documentation😞
// event is a mouse event const isCtrlKeyPressed = event.ctrlKey; this.selectionManager.select(d.identity, isCtrlKeyPressed);
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
That code snippet looks good.
Can you share the whole source code for debugging?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
It'd be better to share all of files.
You can send all of them to pbicvsupport@microsoft.com.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Hello @v-viig,
So ,as I understood, it should look like this, right?
var event = <Event>d3.event; const isCtrlKeyPressed =event.ctrlKey; this.selectionManager.select(d.identity, isCtrlKeyPressed);
However, it shows me that there is no property ctrlKey in event. I googled, and it gives me similar solution as yours. What can be wrong?
Regards,
Yerkhan
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 9 | |
| 4 | |
| 4 | |
| 4 | |
| 4 |