|
|
@ -1,6 +1,6 @@ |
|
|
|
window.addEventListener('load', function (e) { |
|
|
|
window.addEventListener('load', function (e) { |
|
|
|
this.document.body.addEventListener('keydown', function (e) { |
|
|
|
this.document.body.addEventListener('keydown', function (e) { |
|
|
|
if (e.key == 'Backspace') { |
|
|
|
if (e.key == 'Backspace' && (e.target.tagName.toUpperCase() !== 'INPUT' || e.target.value.length === 0)) { |
|
|
|
e.preventDefault() |
|
|
|
e.preventDefault() |
|
|
|
window.history.back() |
|
|
|
window.history.back() |
|
|
|
} |
|
|
|
} |
|
|
|