Skip to main content
5-Regular Member
June 23, 2017
Question

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

  • June 23, 2017
  • 1 reply
  • 1769 views

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-Visitor
December 6, 2017

Hi Venkata AshokKumar Perla​,

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

Thanks,

Ankit Gupta