I want users to enter only digits in a textfield(sap.ui.commons.TextField). For that I was trying to attach standard HTML event 'keydown'/'keyup' bu to my goodness it was throwing error like "undefined is not a function".
Due to this reason I have to fall back to 'liveChange' call back where I am checking if a character entered is digit or not... but it still allows user to type in the textfield....It look quite odd...
Can anyone suggest better approach? Any suggestions/help appreciated.