From 9daa0ba8873996e519112dab87e7f803c7acf831 Mon Sep 17 00:00:00 2001 From: mr-liang2504 Date: Sun, 26 Jan 2025 17:26:34 +0800 Subject: [PATCH] yjtmouse Signed-off-by: mr-liang2504 Change-Id: I88f1115496ac4617a18264ebc95dcb1798e708c3 --- service/key_command/src/key_command_handler.cpp | 3 +++ service/window_manager/src/input_windows_manager.cpp | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/service/key_command/src/key_command_handler.cpp b/service/key_command/src/key_command_handler.cpp index 44ce91b1be..47be3afb79 100644 --- a/service/key_command/src/key_command_handler.cpp +++ b/service/key_command/src/key_command_handler.cpp @@ -2219,6 +2219,9 @@ bool KeyCommandHandler::HandleSequence(Sequence &sequence, bool &isLaunchAbility return false; } } + if (keysSize < sequenceKeysSize) { + MMI_HILOGI("The save sequence not matching ability sequence, unable to take screenshots"); + } if (keysSize == sequenceKeysSize) { std::ostringstream oss; oss << sequence; diff --git a/service/window_manager/src/input_windows_manager.cpp b/service/window_manager/src/input_windows_manager.cpp index fa362b22bf..f30ddbee14 100644 --- a/service/window_manager/src/input_windows_manager.cpp +++ b/service/window_manager/src/input_windows_manager.cpp @@ -1310,6 +1310,10 @@ void InputWindowsManager::PointerDrawingManagerOnDisplayInfo(const DisplayGroupI dragPointerStyle_ = pointerStyle; MMI_HILOGD("Not in drag SelectPointerStyle, pointerStyle is:%{public}d", dragPointerStyle_.id); } + if (firstBtnDownWindowInfo_.first != displayGroupInfoTmp_.focusWindowId) { + dragPointerStyle_ = pointerStyle; + MMI_HILOGI("Restore cursor to default state, pointerStyle is:%{public}d", dragPointerStyle_.id); + } JudgMouseIsDownOrUp(dragFlag_); if (lastPointerEvent_->GetPointerAction() == PointerEvent::POINTER_ACTION_BUTTON_DOWN) { dragFlag_ = true; -- Gitee