mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[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:
committed by
LeaNumworks
parent
84c6c02192
commit
5ef2200ffc
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user