mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-18 11:44:23 +01:00
fix: disable flowchart keybindings inside inputs (#8353)
This commit is contained in:
@@ -3887,7 +3887,11 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event.key === KEYS.ESCAPE && this.flowChartCreator.isCreatingChart) {
|
if (!isInputLike(event.target)) {
|
||||||
|
if (
|
||||||
|
event.key === KEYS.ESCAPE &&
|
||||||
|
this.flowChartCreator.isCreatingChart
|
||||||
|
) {
|
||||||
this.flowChartCreator.clear();
|
this.flowChartCreator.clear();
|
||||||
this.triggerRender(true);
|
this.triggerRender(true);
|
||||||
return;
|
return;
|
||||||
@@ -3943,7 +3947,9 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
),
|
),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const nextNode = this.scene.getNonDeletedElementsMap().get(nextId);
|
const nextNode = this.scene
|
||||||
|
.getNonDeletedElementsMap()
|
||||||
|
.get(nextId);
|
||||||
|
|
||||||
if (
|
if (
|
||||||
nextNode &&
|
nextNode &&
|
||||||
@@ -3970,6 +3976,7 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
event[KEYS.CTRL_OR_CMD] &&
|
event[KEYS.CTRL_OR_CMD] &&
|
||||||
|
|||||||
Reference in New Issue
Block a user