common.min.js: ``` dn = Bt.extend({ key: function (e) { if (e.key) { var t = ln[e.key] || e.key; if ('Unidentified' !== t) return t } return 'keypress' === e.type ? 13 === (e = sn(e)) ? 'Enter' : String.fromCharCode(e) : 'keydown' === e.type || 'keyup' === e.type ? cn[e.keyCode] || 'Unidentified' : '' }, location: null, ctrlKey: null, shiftKey: null, altKey: null, metaKey: null, repeat: null, locale: null, getModifierState: Ht, charCode: function (e) { return 'keypress' === e.type ? sn(e) : 0 }, keyCode: function (e) { return 'keydown' === e.type || 'keyup' === e.type ? e.keyCode : 0 }, which: function (e) { return 'keypress' === e.type ? sn(e) : 'keydown' === e.type || 'keyup' === e.type ? e.keyCode : 0 } }), ``` MicrosoftAjax.js ``` if (b === 'keypress') this.charCode = a.charCode || a.keyCode; else if (a.keyCode && a.keyCode === 46) this.keyCode = 127; else this.keyCode = a.keyCode; ``` Looks like that `keyCode` of `keypress` events are treated correctly. Do we receive different code from the domain?
Bug 1536453 Comment 10 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
common.min.js: ``` function sn(e) { var t = e.keyCode; return 'charCode' in e ? 0 === (e = e.charCode) && 13 === t && (e = 13) : e = t, 10 === e && (e = 13), 32 <= e || 13 === e ? e : 0 } dn = Bt.extend({ key: function (e) { if (e.key) { var t = ln[e.key] || e.key; if ('Unidentified' !== t) return t } return 'keypress' === e.type ? 13 === (e = sn(e)) ? 'Enter' : String.fromCharCode(e) : 'keydown' === e.type || 'keyup' === e.type ? cn[e.keyCode] || 'Unidentified' : '' }, location: null, ctrlKey: null, shiftKey: null, altKey: null, metaKey: null, repeat: null, locale: null, getModifierState: Ht, charCode: function (e) { return 'keypress' === e.type ? sn(e) : 0 }, keyCode: function (e) { return 'keydown' === e.type || 'keyup' === e.type ? e.keyCode : 0 }, which: function (e) { return 'keypress' === e.type ? sn(e) : 'keydown' === e.type || 'keyup' === e.type ? e.keyCode : 0 } }), ``` MicrosoftAjax.js ``` if (b === 'keypress') this.charCode = a.charCode || a.keyCode; else if (a.keyCode && a.keyCode === 46) this.keyCode = 127; else this.keyCode = a.keyCode; ``` Looks like that `keyCode` of `keypress` events are treated correctly. Do we receive different code from the domain?