fix(view): reset inactive state after right-click#467
Conversation
Reset the inactive marker when a right-button release completes. 右键释放完成时复位窗口失焦标记。 Log: 修复失焦后右键导致首次空白点击无法取消选中 Influence: 缩略图列表右键菜单后的空白点击可正常取消选中
deepin pr auto review★ 总体评分:95分■ 【总体评价】
■ 【详细分析】
■ 【改进建议代码示例】 // ThumbnailListViewAlbum.qml: 修复点,右键释放时重置状态
onReleased: (mouse)=> {
if (mouse.button === Qt.RightButton) {
// 重置窗口失焦状态,防止影响右键菜单及后续选择逻辑
GStatus.windowDisActived = false
pressCanceled();
return;
} |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: pengfeixx, wyu71 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Reset the inactive marker when a right-button release completes. 右键释放完成时复位窗口失焦标记。
Log: 修复失焦后右键导致首次空白点击无法取消选中
Influence: 缩略图列表右键菜单后的空白点击可正常取消选中