[ion/simulator/web] Remove a hack

Using SDL2, we don't need to preventdefault on space/arrow keydown
And if we do, we don't get "space" events in the simulator.
This commit is contained in:
Romain Goyet
2019-11-18 17:56:59 +01:00
committed by LeaNumworks
parent 84c6c02192
commit 5ef2200ffc

View File

@@ -290,13 +290,6 @@ document.getElementById("action-fullscreen").addEventListener("click", function(
document.getElementById("action-screenshot").addEventListener("click", function(e) {
screenshot();
});
window.addEventListener("keydown", function(e) {
// space and arrow keys
if([32, 37, 38, 39, 40].indexOf(e.keyCode) > -1) {
e.preventDefault();
}
}, false);
</script>
<script async src="https://www.numworks.com/simulator/update.js"></script>
</body>