[FIXED-598][3.x/2.x] isSpecialKey() does not include the DELETE key
The following mask was preventing the DELETE key from executing normally:
Code:
maskRe: /[a-zA-Z\'\- ]/
Overrode the isSpecialKey function to include DELETE.
Code:
Ext.EventObjectImpl.prototype.isSpecialKey = function() {
var k = this.keyCode;
k = Ext.isSafari ? (safariKeys[k] || k) : k;
return (this.type == 'keypress' && this.ctrlKey) ||
this.isNavKeyPress() ||
(k == this.BACKSPACE) || // Backspace
(k == this.DELETE) || // Delete -- Currently not implemented, can also change 45 to 46 below to include it as well.
(k >= 16 && k <= 20) || // Shift, Ctrl, Alt, Pause, Caps Lock
(k >= 44 && k <= 45); // Print Screen, Insert
};