mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-28 22:08:54 -04:00
More work on key handling and rename KeyEvent#keyCode -> KeyEvent#key.
This commit is contained in:
parent
9f47942e7a
commit
742c9da822
4 changed files with 64 additions and 32 deletions
|
@ -287,7 +287,7 @@
|
|||
|
||||
var layer = document.activeLayer;
|
||||
function onKeyDown(event) {
|
||||
if (event.keyCode == 'space')
|
||||
if (event.key == 'space')
|
||||
layer.selected = !layer.selected;
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue