mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Merge 75bf984cec
into 195a743874
This commit is contained in:
commit
7ade99cce1
2 changed files with 8 additions and 0 deletions
|
@ -24,6 +24,10 @@ export const actionToggleSearchMenu = register({
|
||||||
predicate: (appState) => appState.gridModeEnabled,
|
predicate: (appState) => appState.gridModeEnabled,
|
||||||
},
|
},
|
||||||
perform(elements, appState, _, app) {
|
perform(elements, appState, _, app) {
|
||||||
|
if (appState.openDialog) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
appState.openSidebar?.name === DEFAULT_SIDEBAR.name &&
|
appState.openSidebar?.name === DEFAULT_SIDEBAR.name &&
|
||||||
appState.openSidebar.tab === CANVAS_SEARCH_TAB
|
appState.openSidebar.tab === CANVAS_SEARCH_TAB
|
||||||
|
|
|
@ -264,6 +264,10 @@ export const SearchMenu = () => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
|
||||||
|
if (app.state.openDialog) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!searchInputRef.current?.matches(":focus")) {
|
if (!searchInputRef.current?.matches(":focus")) {
|
||||||
if (app.state.openDialog) {
|
if (app.state.openDialog) {
|
||||||
setAppState({
|
setAppState({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue