-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Right click to open inspector does not work when build is generated with -devtools flag only #2908
Comments
The We have two options to solve this : 1- Using the 2- Keep it as it is, and if the dev wants the context-menu everywhere, he will have to set Either ways, some updates to the docs will be needed to make this clear I'm honestly not sure what is the right solution here, @goriunov, @leaanthony What do you think? |
TBH I am leaning towards the second option. We just need to update documentation on the -devtools flag that we should enable the default context menu to be able to access the inspector, it somewhat makes sense. @leaanthony what do you think? |
Rather than get bogged down in different scenarios, how about we add |
@leaanthony It sure is a useful thing to add, but IMHO it's something different than Mainly that it requires private APIs for Mac, in windows it works as tested without the devtools being enabled (so can be a hidden option), but in Linux the devtools has to be enabled to be able to open it programmatically.
The main use case for the devtools option is in production builds, in dev and debug you already have access to it. Why |
Me too, but I think if we go this route then it would make more sense to require |
I still think your original suggestion of having a runtime method is perfectly valid. The more I've thought about it, the more I think that it's fine to let the developer choose. We can warn that the use of private APIs will not pass app store guidelines. All of this could be default in a |
I've got a PR up to add F12 hotkey on all platforms to open the devtools window when compiling with the |
Sorry for late reply, got a bit swamped, F12 sound good! Just did a test on Mac and Windows from latest master branch and everything seems to work well! |
Description
Running on latest wails 2.6.0. When build is generated with the devtools only flag, on mac os or windows the right click is still disabled which prevents us from opening inspector.
The -debug flag works as expected and has right click enabled to open inspector.
To Reproduce
Expected behaviour
Right click working and inspector can be opened from the menu
Screenshots
No response
Attempted Fixes
No response
System Details
Additional context
No response
The text was updated successfully, but these errors were encountered: