show keyboard shortcuts

This commit is contained in:
2020-10-10 02:10:20 +02:00
parent e19da137e5
commit c0ea157f08
4 changed files with 173 additions and 35 deletions

View File

@@ -48,13 +48,6 @@ window.onload = function() {
suggestionTimer = setTimeout(showSuggestion, 30000)
}
document.onkeydown = function(event) {
if (event.ctrlKey == true && event.key.toLowerCase() == "z") {
event.preventDefault()
undo()
}
}
function searchAllowedValuesOf(box) {
box.allowedValues = new Set(VALUES)
box.neighbourhood.forEach(neighbour => box.allowedValues.delete(neighbour.value))