PDA

View Full Version : application reloads on click of backspace button in some fields



amarnath1
21 Aug 2014, 1:00 AM
After clicking on backspace button readonly,editable textbox,combobox and textarea application reloads in all the browsers

amarnath1
21 Aug 2014, 1:01 AM
use this function in app.js
this will work in IE,mozilla and chrome
Ext.EventManager.on(window, 'keydown', function (e, t) {
if (e.getKey() == e.BACKSPACE && ((!/^input$/i.test(t.tagName) || t.disabled || t.readOnly) && (t.tagName != 'TEXTAREA' || t.disabled || t.readOnly))) {
e.stopEvent();
}


});