Selaa lähdekoodia

Disable deleting entities with backspace

This was causing things to vanish when editing numbers
tags/v0.0.4
Fen Dweller 5 vuotta sitten
vanhempi
commit
be2bd3c2e4
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      macrovision.js

+ 1
- 1
macrovision.js Näytä tiedosto

@@ -705,7 +705,7 @@ document.addEventListener("DOMContentLoaded", () => {

document.addEventListener("keydown", e => {
console.log(e)
if (e.key == "Delete" || e.key == "Backspace") {
if (e.key == "Delete") {
if (selected) {
removeEntity(selected);
selected = null;


Loading…
Peruuta
Tallenna