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) {
|
||||
clearSelection(elements);
|
||||
}
|
||||
// No matter what, we select it
|
||||
// We duplicate the selected element if alt is pressed on Mouse down
|
||||
if (e.altKey) {
|
||||
const element = newElement(
|
||||
hitElement.type,
|
||||
|
@ -689,6 +689,7 @@ class App extends React.Component<{}, AppState> {
|
|||
|
||||
elements.push(element);
|
||||
}
|
||||
// No matter what, we select it
|
||||
hitElement.isSelected = true;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue