diff --git a/src/index.tsx b/src/index.tsx index 0504ff7e..3ffa138c 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -381,6 +381,7 @@ class App extends React.Component<{}, AppState> { if (event.key === "Escape") { clearSelection(); drawScene(); + event.preventDefault(); } else if (event.key === "Backspace") { deleteSelectedElements(); drawScene(); @@ -402,6 +403,12 @@ class App extends React.Component<{}, AppState> { }); drawScene(); event.preventDefault(); + } else if (event.key === "a" && event.metaKey) { + elements.forEach(element => { + element.isSelected = true; + }); + drawScene(); + event.preventDefault(); } };