diff --git a/presentation/src/main/java/com/anytypeio/anytype/presentation/editor/EditorViewModel.kt b/presentation/src/main/java/com/anytypeio/anytype/presentation/editor/EditorViewModel.kt index 89a5828efc..e067c1a86b 100644 --- a/presentation/src/main/java/com/anytypeio/anytype/presentation/editor/EditorViewModel.kt +++ b/presentation/src/main/java/com/anytypeio/anytype/presentation/editor/EditorViewModel.kt @@ -4610,6 +4610,7 @@ class EditorViewModel( return controlPanelViewState.value?.let { state -> val isVisible = state.mentionToolbar.isVisible val isSlashWidgetVisible = state.slashWidget.isVisible + val isTypesWidgetVisible = _typesWidgetState.value.visible if (isVisible) { onMentionEvent(MentionEvent.MentionSuggestStop) return true @@ -4618,6 +4619,10 @@ class EditorViewModel( controlPanelInteractor.onEvent(ControlPanelMachine.Event.Slash.OnStop) return true } + if (isTypesWidgetVisible) { + sendHideTypesWidgetEvent() + return true + } if (!orchestrator.stores.focus.current().isEmpty) { onHideKeyboardClicked() }