mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat(duplcate_element): add comments
This commit is contained in:
parent
ccfcbe3984
commit
2eff4779a4
1 changed files with 2 additions and 1 deletions
|
@ -671,7 +671,7 @@ class App extends React.Component<{}, AppState> {
|
||||||
if (!e.shiftKey) {
|
if (!e.shiftKey) {
|
||||||
clearSelection(elements);
|
clearSelection(elements);
|
||||||
}
|
}
|
||||||
// No matter what, we select it
|
// We duplicate the selected element if alt is pressed on Mouse down
|
||||||
if (e.altKey) {
|
if (e.altKey) {
|
||||||
const element = newElement(
|
const element = newElement(
|
||||||
hitElement.type,
|
hitElement.type,
|
||||||
|
@ -689,6 +689,7 @@ class App extends React.Component<{}, AppState> {
|
||||||
|
|
||||||
elements.push(element);
|
elements.push(element);
|
||||||
}
|
}
|
||||||
|
// No matter what, we select it
|
||||||
hitElement.isSelected = true;
|
hitElement.isSelected = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue