mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: disable flowchart keybindings inside inputs (#8353)
This commit is contained in:
parent
99b91c46f7
commit
87a9430809
1 changed files with 76 additions and 69 deletions
|
@ -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] &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue