Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复鼠标导航的一部分按钮 name 属性为空的问题 #2

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions addon/appModules/wechat.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,15 @@ def event_gainFocus(self, obj, nextHandler, isFocus=False):

nextHandler()

def event_mouseMove(self, obj: NVDAObject, nextHandler):
if obj.role == role.BUTTON and obj.name == "" and obj.previous.role == role.PANE:
for child in obj.previous.children:
if child.role == role.STATICTEXT and child.name != "":
obj.name = child.name
break
nextHandler()


@script(
description="是否自动朗读新消息",
category="PC微信增强",
Expand Down
Loading