Explorar el Código

Disable deleting entities with backspace

This was causing things to vanish when editing numbers
tags/v0.0.4
Fen Dweller hace 5 años
padre
commit
be2bd3c2e4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      macrovision.js

+ 1
- 1
macrovision.js Ver fichero

@@ -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;


Cargando…
Cancelar
Guardar