keyboard button

This commit is contained in:
2023-03-30 03:42:32 +02:00
parent dee27c9ca7
commit 8f412bdd0f
3 changed files with 6 additions and 11 deletions

View File

@ -67,7 +67,7 @@ window.onload = function() {
searchCandidatesOf(box)
})
insertRadios = Array.from(insertRadioGroup.getElementsByTagName("input"))
insertRadios = Array.from(insertRadioGroup.getElementsByTagName("input")).slice(1)
for (label of document.getElementsByTagName("label")) {
label.control.label = label
@ -300,12 +300,7 @@ function onmouseleave(event) {
}
function insert(radio) {
if (radio.value == valueToInsert) {
valueToInsert = ""
radio.checked = false
} else {
valueToInsert = radio.value
}
valueToInsert = radio.value
grid.style.cursor = valueToInsert ? "copy" : "text"
highlight()
}