We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d079fa commit 5d0e848Copy full SHA for 5d0e848
2 files changed
src/LiveDevelopment/BrowserScripts/LiveDevProtocolRemote.js
@@ -589,6 +589,16 @@
589
}
590
591
592
+ // duplicate element: Ctrl+D / Cmd+D
593
+ if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === "d") {
594
+
595
+ // Only handle element cut if not editing text and in edit mode
596
+ if (!isEditingText && !isActiveElementPhoenixTool && isInEditMode && window._LD.handleCutElement) {
597
+ e.preventDefault();
598
+ window._LD.handleDuplicateElement();
599
+ }
600
601
602
// Copy: Ctrl+C / Cmd+C - operates on selected element
603
if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === "c") {
604
tracking-repos.json
@@ -1,5 +1,5 @@
1
{
2
"phoenixPro": {
3
- "commitID": "3826a7180c9463ecf02f4051e78696d503c7c6f1"
+ "commitID": "362d14dffdbac13b851d4591ee07dd9827bb1c33"
4
5
0 commit comments