mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-28 22:08:54 -04:00
Prevent default when handling space key.
This commit is contained in:
parent
4490403ae9
commit
4d6ca5c8c6
1 changed files with 3 additions and 1 deletions
|
@ -287,8 +287,10 @@
|
|||
|
||||
var layer = document.activeLayer;
|
||||
function onKeyDown(event) {
|
||||
if (event.key == 'space')
|
||||
if (event.key == 'space') {
|
||||
layer.selected = !layer.selected;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue