Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Im trying to add a keyEvent because i want to submit only when i press enter
But it doesnt seem to exist here for powerbi.
Are there any alternatives or is it just disabled for security reasons?
d3.select(this.helpLinkElement9[3]).on("keypress", function(){ if(d3.event.keyCode === 32 || d3.event.keyCode === 13){ console.log("Congrats, you pressed enter or space!") } ...
Solved! Go to Solution.
I figured it out by just playing with the code 🙂
This works for me, if someone faces the same issue:
d3.select(this.helpLinkElement9[3]).on("keypress", function(){ if((event as KeyboardEvent).keyCode === 13){ /* Code */ } });
I figured it out by just playing with the code 🙂
This works for me, if someone faces the same issue:
d3.select(this.helpLinkElement9[3]).on("keypress", function(){ if((event as KeyboardEvent).keyCode === 13){ /* Code */ } });
What exactly issue are you facing? Are there any build issues?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
It says "keyCode" is not available for type "Event"
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
6 | |
6 | |
3 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
3 |