Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
chemicalcrux
/
macrovision
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
5
Pull Requests
0
Lanzamientos
10
Wiki
Actividad
Explorar el Código
Make the delete and backspace keys remove the currently selected entity
tags/v0.0.3
Fen Dweller
hace 6 años
padre
1e83dcd6fa
commit
babcbdcd73
Se han
modificado 1 ficheros
con
9 adiciones
y
0 borrados
Unificar vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+9
-0
macrovision.js
+ 9
- 0
macrovision.js
Ver fichero
@@ -653,6 +653,15 @@ document.addEventListener("DOMContentLoaded", () => {
}
}
});
});
document.addEventListener("keydown", e => {
console.log(e)
if (e.key == "Delete" || e.key == "Backspace") {
if (selected) {
removeEntity(selected);
selected = null;
}
}
})
prepareEntities();
prepareEntities();
});
});
Escribir
Vista previa
Cargando…
Cancelar
Guardar