i need detect backspace in appcelerator android. have event listener searchbox here:
$.searchinputbox.addeventlistener('change', function() { var searchinput = $.searchinputbox.value; // searchinput value. if(searchinput.length >= 2){ // stuff } } is there way search box detect if user has deleted text?
thanks.
try code
$.searchinputbox.addeventlistener('keypressed', function(e) { if(e.keycode === [backspace code]) { //i's backspace } } dont forgot setfocusable ` property true search input
Comments
Post a Comment