无法在弹出窗口和Excel for Mac之间切换 [英] Cannot switch between popup window and Excel for Mac

查看:161
本文介绍了无法在弹出窗口和Excel for Mac之间切换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我制作了一个Excel加载项,该加载项通过window.open

I have made an Excel add-in, which pops up a window either by window.open or Dialog API.

我刚刚在Mac上的Excel中对其进行了测试:打开窗口时,似乎我们无法将焦点放回到Excel或加载项任务窗格中;我们必须先关闭窗口,然后再选择Excel或附加任务窗格.

I just tested it in Excel for Mac: when the window is opened, it seems that we can NOT put the focus back to Excel or the add-in taskpane; we have to close the window before choosing Excel or the add-in taskpane.

有人知道是否有办法在弹出窗口和Excel之间启用焦点切换吗?

Does anyone know if there is a way to enable switching focus between popup window and Excel?

推荐答案

对话框窗口本质上是一种模式,可强制用户与其进行交互,然后再返回使用父加载项/Office主机.对于需要与Excel来回交互的交互,任务窗格是UI的正确位置.

The dialog window is a modal in nature that forces the user to interact with it before they can go back to using the parent add-in/Office host. For interaction that requires back-n-forth with Excel, task-pane is the right place for UI.

这篇关于无法在弹出窗口和Excel for Mac之间切换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆