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

Made the ad-on support ROLE_DOCUMENT, so it works with the new Notepad and other such things. #8

Merged
merged 2 commits into from
Sep 2, 2022

Conversation

trypsynth
Copy link
Contributor

Closes #7

@mltony
Copy link
Owner

mltony commented Aug 25, 2022

Did you test it in other apps? It shouldn't trigger in browse mode or in Microsoft Word/WordPad - all of them have document as role.

@trypsynth
Copy link
Contributor Author

It always triggered in WordPad, as its ROLE_EDITABLETEXT. I don't have generic word to test it with, though.

@mltony
Copy link
Owner

mltony commented Aug 25, 2022 via email

@trypsynth
Copy link
Contributor Author

Ooh, excellent point. What else could we check for? Some property on the control?

@mltony
Copy link
Owner

mltony commented Aug 26, 2022 via email

@trypsynth
Copy link
Contributor Author

Okay, we now check for the window class being RichEditD2DPT. All seems to work as expected.

@mltony mltony merged commit 65461c1 into mltony:master Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Totally nonfunctional in Windows Notepad
2 participants