fix context menu input
This commit is contained in:
parent
e23dfc9f7f
commit
d5655b7a9a
2
app.js
2
app.js
@ -256,8 +256,10 @@ function oncontextmenu(event) {
|
|||||||
li.innerText = candidate
|
li.innerText = candidate
|
||||||
li.onclick = function (event) {
|
li.onclick = function (event) {
|
||||||
contextMenu.style.display = "none"
|
contextMenu.style.display = "none"
|
||||||
|
onfocus.apply(box)
|
||||||
box.value = event.target.innerText
|
box.value = event.target.innerText
|
||||||
oninput.apply(box)
|
oninput.apply(box)
|
||||||
|
onblur.apply(box)
|
||||||
}
|
}
|
||||||
contextMenu.appendChild(li)
|
contextMenu.appendChild(li)
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user