OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
667 stars 94 forks source link

Word Addin: Return Focus to Document Body after Interaction with Taskpane #4665

Closed pki89 closed 1 month ago

pki89 commented 1 month ago

Hi,

would be really great to have a way to return user focus back to the word document after user has interacted with the taskpane. Currently, user has to click in the document body again in order to continue their work (e.g. typing) in the document. This heavily impairs UX.

Also relates to this https://github.com/OfficeDev/office-js/issues/316 (which appears still not to be fixed).

Thanks a lot.

shanshanzheng-dev commented 1 month ago

Hi @pki89 Could you give us more information about this issue? seem that link your provide is blank. Thanks.

pki89 commented 1 month ago

https://github.com/OfficeDev/office-js/issues/316

The issue is, that the user interacts with the taskpane, i.a by clicking some button, which e.g. insert a string into the word doc user would the expect to be able to immediately resume their work in the word doc by continuing their typing. That is not the case, as the user first has to click the document body again to havethe focus/cursor there again.

Would be great to allow devs to choose to force refocus to the document

Thanks a lot

stevefengjin commented 1 month ago

@pki89 thank you for bringing this to our attention. If you like to tell us more about your requirement about this feature, please leave your contact information in this form: https://forms.office.com/r/QayRq1FVEb

Or, we have received similar request in the past and you may upvote in the forum if you see it reflects your requirement: https://techcommunity.microsoft.com/t5/microsoft-365-developer-platform/set-selection-and-focus-back-to-document-after-action-in-ms-word/idi-p/4065642

microsoft-github-policy-service[bot] commented 1 month ago

This issue has been automatically marked as stale because it is marked as needing author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your interest in Office Add-ins!

microsoft-github-policy-service[bot] commented 1 month ago

This issue has been closed due to inactivity. Please comment if you still need assistance and we'll re-open the issue.