fix renamed variable names from #8294 and #8340

This commit is contained in:
Andrew Aquino 2024-09-20 13:22:44 -07:00
parent b8dc344e55
commit ace478a0eb

View file

@ -4071,9 +4071,10 @@ class App extends React.Component<AppProps, AppState> {
event.key === KEYS.ESCAPE &&
// unless we're dragging or finalizing an action
!(
this.state.draggingElement ||
this.state.newElement ||
isWritableElement(event.target) ||
this.state.editingElement ||
this.state.editingTextElement ||
this.state.editingLinearElement ||
["freedraw", "eraser"].includes(this.state.activeTool.type)
)
) {