Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为了锁定客户端应用程序(在用户不活动一段时间后),我会弹出一个应用程序模式对话框(Dialog 类),它会阻止所有其他用户输入并强制进行身份验证,这工作得很好。
这种方法存在一个问题。如果触发另一个模态对话框,它会显示在顶部,窃取焦点并绕过锁定机制。
是否有任何方法可以防止其他模式对话框控制并将输入留给“唯一的主对话框”?