Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
Surpress Enter Key on igNumericEditor
posted

I have implemented an igNumericEditor on my page.

When the users pressed the Enter Button the form closes.

How can I catch the Enter key to prevent my page to close.

(I have seen: https://www.infragistics.com/community/forums/f/ignite-ui-for-javascript/67254/submitting-with-enter-key )

but this solution seems not to be working on igNumericEditor.

my implementation looks like

$("#number_working_hours").igNumericEditor( {
minValue: 100,
maxValue: 9000,
dataMode: 'int',
groupSeparator: String.fromCharCode(65279),
regional: 'de',
hideEnterKey: true,
keydown: function(evt, ui) { return false; // return ui.key !== 13;
}
});