mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-08-30 13:47:12 +02:00
Pure node rendering (#443)
This commit is contained in:

committed by
GitHub

parent
5ce5e5ac1e
commit
7f6e1f420e
@@ -35,7 +35,7 @@ import { AppState } from "./types";
|
||||
import { ExcalidrawElement, ExcalidrawTextElement } from "./element/types";
|
||||
|
||||
import { isInputLike, measureText, debounce, capitalizeString } from "./utils";
|
||||
import { KEYS, META_KEY, isArrowKey } from "./keys";
|
||||
import { KEYS, isArrowKey } from "./keys";
|
||||
|
||||
import { findShapeByKey, shapesShortcutKeys, SHAPES } from "./shapes";
|
||||
import { createHistory } from "./history";
|
||||
@@ -303,7 +303,7 @@ export class App extends React.Component<{}, AppState> {
|
||||
this.state.elementType !== "selection")
|
||||
) {
|
||||
this.setState({ elementType: findShapeByKey(event.key) });
|
||||
} else if (event[META_KEY] && event.code === "KeyZ") {
|
||||
} else if (event[KEYS.META] && event.code === "KeyZ") {
|
||||
if (event.shiftKey) {
|
||||
// Redo action
|
||||
const data = history.redoOnce();
|
||||
|
Reference in New Issue
Block a user