in src/Foundation/Theming/code/scripts/autoNumeric.js [628:682]
skipAllways: function (e) {
var kdCode = this.kdCode,
which = this.which,
ctrlKey = this.ctrlKey,
cmdKey = this.cmdKey,
shiftKey = this.shiftKey; /** catch the ctrl up on ctrl-v */
if (((ctrlKey || cmdKey) && e.type === 'keyup' && this.valuePartsBeforePaste !== undefined) || (shiftKey && kdCode === 45)) {
this.checkPaste();
return false;
}
/** codes are taken from http://www.cambiaresearch.com/c4/702b8cd1-e5b0-42e6-83ac-25f0306e3e25/Javascript-Char-Codes-Key-Codes.aspx
* skip Fx keys, windows keys, other special keys
*/
if ((kdCode >= 112 && kdCode <= 123) || (kdCode >= 91 && kdCode <= 93) || (kdCode >= 9 && kdCode <= 31) || (kdCode < 8 && (which === 0 || which === kdCode)) || kdCode === 144 || kdCode === 145 || kdCode === 45) {
return true;
}
if ((ctrlKey || cmdKey) && kdCode === 65) { /** if select all (a=65)*/
return true;
}
if ((ctrlKey || cmdKey) && (kdCode === 67 || kdCode === 86 || kdCode === 88)) { /** if copy (c=67) paste (v=86) or cut (x=88) */
if (e.type === 'keydown') {
this.expandSelectionOnSign();
}
if (kdCode === 86 || kdCode === 45) { /** try to prevent wrong paste */
if (e.type === 'keydown' || e.type === 'keypress') {
if (this.valuePartsBeforePaste === undefined) {
this.valuePartsBeforePaste = this.getBeforeAfter();
}
} else {
this.checkPaste();
}
}
return e.type === 'keydown' || e.type === 'keypress' || kdCode === 67;
}
if (ctrlKey || cmdKey) {
return true;
}
if (kdCode === 37 || kdCode === 39) { /** jump over thousand separator */
var aSep = this.settingsClone.aSep,
start = this.selection.start,
value = this.that.value;
if (e.type === 'keydown' && aSep && !this.shiftKey) {
if (kdCode === 37 && value.charAt(start - 2) === aSep) {
this.setPosition(start - 1);
} else if (kdCode === 39 && value.charAt(start + 1) === aSep) {
this.setPosition(start + 1);
}
}
return true;
}
if (kdCode >= 34 && kdCode <= 40) {
return true;
}
return false;
},