mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 23:21:05 +00:00
修复RichEditor系统键盘和自定义键盘切换问题,菜单不显示问题
Signed-off-by: 姚明 <yaoming14@huawei.com>
This commit is contained in:
parent
7ad8e26f49
commit
3a6b9159dd
@ -6222,6 +6222,8 @@ void RichEditorPattern::CopySelectionMenuParams(SelectOverlayInfo& selectInfo, T
|
||||
auto selectType = selectedType_.value_or(TextSpanType::NONE);
|
||||
std::shared_ptr<SelectionMenuParams> menuParams = nullptr;
|
||||
menuParams = GetMenuParams(selectType, responseType);
|
||||
TAG_LOGI(AceLogTag::ACE_RICH_TEXT, "textSpanType = %{public}d , responseType = %{public}d", selectType,
|
||||
responseType);
|
||||
if (menuParams == nullptr) {
|
||||
return;
|
||||
}
|
||||
|
@ -351,7 +351,9 @@ public:
|
||||
void NotifyKeyboardClosed() override
|
||||
{
|
||||
TAG_LOGI(AceLogTag::ACE_RICH_TEXT, "KeyboardClosed");
|
||||
FocusHub::LostFocusToViewRoot();
|
||||
if (!isCustomKeyboardAttached_) {
|
||||
FocusHub::LostFocusToViewRoot();
|
||||
}
|
||||
}
|
||||
void ClearOperationRecords();
|
||||
void ClearRedoOperationRecords();
|
||||
|
@ -809,6 +809,8 @@ void BaseTextSelectOverlay::OnAncestorNodeChanged(FrameNodeChangeInfoFlag flag)
|
||||
isSwitchToEmbed = isSwitchToEmbed && (!IsAncestorNodeEndScroll(flag) || HasUnsupportedTransform());
|
||||
if (isStartScroll || isStartAnimation || isTransformChanged || isStartTransition) {
|
||||
HideMenu(true);
|
||||
} else if (IsAncestorNodeEndScroll(flag)) {
|
||||
ShowMenu();
|
||||
}
|
||||
auto pipeline = PipelineContext::GetCurrentContextSafely();
|
||||
CHECK_NULL_VOID(pipeline);
|
||||
|
Loading…
Reference in New Issue
Block a user