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