diff --git a/back.js b/back.js index 0c8361b..909bf61 100644 --- a/back.js +++ b/back.js @@ -1,6 +1,6 @@ window.addEventListener('load', 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() window.history.back() }