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

bug, 使用Ctrl键加鼠标左键点击路由链接时,会在新窗口中打开, 这破坏了非响应式固定样式的窗口设计。 #40

Open
LuSrackhall opened this issue Nov 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@LuSrackhall
Copy link
Owner

原因分析

这是因为Electron的webContents默认行为类似于浏览器,允许在新窗口中打开链接。

解决方案思考

要控制这种行为并防止在新窗口中打开链接,可以考虑监听new-window事件并阻止默认行为。

@LuSrackhall LuSrackhall added the bug Something isn't working label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant