cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

How to trigger Mashup button when you press Enter in textbox?

vperla
5-Regular Member

How to trigger Mashup button when you press Enter in textbox?

I want to bind mash button with keyboard 'Enter' key in-addition to mouse click. I have added below code in snippet of service but it doesn't work

document.onkeydown = function (e) {
  e
= e || window.event;
 
switch (e.which || e.keyCode) {
  
case 13 : //Your Code Here (13 is ascii code for 'ENTER')
  
break;
 
}
}

Could you please help on this?

1 REPLY 1
ankitgupta
5-Regular Member
(To:vperla)

Hi Venkata AshokKumar Perla​,

I am also looking for this functionality. Did you find any solution to it?

Thanks,

Ankit Gupta

Top Tags