CMD + D to Duplicate Selection (#982)

* cmd+d to duplicate selection

* use duplicateElement instead

* use duplicateElement instead

* Update actionDuplicateSelection.ts

* select the new duplicated element

* add locale

* use event.key instead of event.code

Co-authored-by: David Luzar <luzar.david@gmail.com>
This commit is contained in:
Faustino Kialungila 2020-03-16 22:53:02 +01:00 committed by GitHub
parent 6966a7a008
commit ae9b64a623
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 1 deletions

View file

@ -43,7 +43,8 @@
"drawingCanvas": "Drawing Canvas",
"layers": "Layers",
"language": "Language",
"createRoom": "Share a live-collaboration session"
"createRoom": "Share a live-collaboration session",
"duplicateSelection": "Duplicate selected elements"
},
"buttons": {
"clearReset": "Reset the canvas",