Thank you for your replay.
After adding your code it actually removed the mask from the input and the numeric keyboard still didn't work.
After analyzing the code a bit, we found that the method String.fromCharCode() doesn't return the numbers from 0-9 but letters and a ` (back tick) symbol.
So we modified the code a bit and now everything is working for us.
The working code sample:
if($.fn.maskedbox){
let keydownEventHandler = $.fn.maskedbox.defaults.inputEvents.keydown;
$.extend($.fn.maskedbox.defaults.inputEvents, {
keydown: function(e){},
keypress: function(e){
if(e.which > 95 && e.which < 106){
return true;
}
return keydownEventHandler(e)
}
});
}