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.
我可以显示一个上下文菜单,这很棒。
现在我不希望用户能够在不选择选项的情况下关闭上下文菜单,我将如何执行此操作?还是我应该停止懒惰并转向对话?
没有公共 API 来控制上下文菜单上的后键行为。正如您所建议的,您最好的选择是转到对话框。