3.2.0

how to cancel onKeyEnter

We are using an Input control that has an onKeyEnter event.

When the onKeyEnter event fires, how can I stop the key right there.

How can I stop the enter key from bubbling up to the document body?

Eric Juvet
February 8,
I found the answer. This seems to work:

function cancelEvent(event) {
event.keyCode = 0;
event.returnValue = false;
event.cancelBubble = true;
return false;
}
Eric Juvet
February 8,

This topic is archived.

See also:


Back to support forum