CalcBuilder Forum

Calculation trigger with enter button

User Panos512 2015-05-06 16:43:02

Hello,

I was wondering if there is support for calculation trigger on enter button press.

Thank you in advance,
Panos

Moonsoft support 2015-05-06 17:08:23

Hello,
you could add that function using the javascript tab. This code would click automatically 'calculate' button when enter key is detected:

CB(document).keyup(function(e) {
if(e.which == '13') {
CB("input").click();
}
});

Hope this helps, regards

User Panos512 2015-05-06 17:30:33

It worked!

Thank you very much

...
Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!
...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!