fix changeKey
This commit is contained in:
parent
af0bc56099
commit
951dfcdcb8
10
app.js
10
app.js
@ -489,9 +489,9 @@ class Settings {
|
|||||||
}
|
}
|
||||||
|
|
||||||
load() {
|
load() {
|
||||||
for (let element of settingsForm.elements) {
|
for (let input of settingsForm.elements) {
|
||||||
if (element.name) {
|
if (input.name) {
|
||||||
if (localStorage[element.name]) element.value = localStorage[element.name]
|
if (localStorage[input.name]) input.value = localStorage[input.name]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -537,8 +537,8 @@ class Settings {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function changeKey(input) {
|
window.changeKey = function(input) {
|
||||||
prevValue = input.value
|
let prevValue = input.value
|
||||||
input.value = ""
|
input.value = ""
|
||||||
input.onkeydown = function (event) {
|
input.onkeydown = function (event) {
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user