-
Notifications
You must be signed in to change notification settings - Fork 14
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
Z shortcut is active in 2D, script editor, etc #18
Comments
Confirmed, the pie menu is showing up in 2d editor. |
Gave it a stab today, could not figure it out from the docs, so I started looking at other plugins and found a solution. Sweet. Add this at the end of _ready():
And change the 9th line of _input() to: |
Thanks for the code snippets, these did the trick for me for the script editor itself. I noticed that the issue is still cropping up in the other editor windows- for example, while the 3D view is active, I'm unable to type "z" in the shader editor, or in the search bars of the scene or the filesystem tabs, even though that doesn't launch the pie menu, either. Loving the addon in general, just wanted to chime in with additional notes on this fix. |
Oh yeah, that's a problem for all panels in 3D view - bottom, inspector, scene, filesystem, etc. Wait a minute... in my other bug report (#19) I noticed an error message when you press Z in those areas. This code already has all the information it needs. We need a null check in this function:
And we should only consume the Z key if that function actually launches the pie menu:
If I keep working on this addon I should fork it instead of just posting snippets, lol. Are you still maintaining this @imjp94? What about you @NathanLovato, would you want to take it over if he's not? I don't really want to but I could, as long as I'm using it anyway. |
@dc1248 Feel free to fork and make a pull request =) |
@imjp94 Thanks, will do! I may attempt some more polishing first, but I'll try to do that fairly soon. |
That's the only one I notice but you should check your code thoroughly.
Other than that, love it!
The text was updated successfully, but these errors were encountered: