-
-
Notifications
You must be signed in to change notification settings - Fork 314
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
Esc
should cancel the in-going edition of a layer parameter value
#2411
Comments
Hi @rodolforg ! Is anyone working on this issue? If not I am interested. |
Hi @nickleus27! |
@ice0 I am looking in |
I think Rodolfo wrote about this panel: it should be located in the
I think the |
@ice0 awesome, will do. This will help get me going 👍 |
Hi @rodolforg ! ice0 recommended i look in |
@ice0 I have been looking over the gtk3-demo. I have been looking at the editable cells demo, and the GtkCellRenderer::editing-started signal. I am having a hard time figuring out why the cell responds to say the "return" key but not the "escape" key in the param "value" column in synfig. |
Please check P.S. Rodolfo wrote that he will be busy at work for a while, this is the reason why he doesn't respond. |
@ice0 Thank you for your response. The GDK_KEY_RELEASE gets triggered when you press |
I guess it gets called from |
Hi @nickleus27 sorry my absence, I'm really 'suffocated' with my job due to end of year. |
@rodolforg Thank you for your response, this definitely helps. |
I am still having a hard time understanding how the program branches to |
Several (all?) gtk signal callbacks/slots that are supposed to return a bool value that, if true, means the event shouldn't handled anywhere else - you did what it should be done. The The Esc key pressing should call the editing_canceled signal. https://docs.gtk.org/gtk3/signal.CellRenderer.editing-canceled.html |
This is the expected behavior (docs).
Unfortunately, they didn't describe how to intercept the Esc key, so it just should work out of the box. synfig/synfig-studio/src/gui/cellrenderer/cellrenderer_value.cpp Lines 654 to 663 in d37e72a
Here Synfig creates a new Also, if you check the synfig/synfig-studio/src/gui/cellrenderer/cellrenderer_value.cpp Lines 85 to 91 in d37e72a
I mean the commented |
@ice0 @rodolforg thanks guys. This is really helpful information. |
@ice0 Lol, I have most of the value EventBox's escaping now except when the the EventBox has the Value type of real. Trying to figure that out at the moment. |
Closed by #2455 |
Thank you, @nickleus27 ! :) |
Thank you @rodolforg |
Is your feature request related to a problem? Please describe.
I'm always frustrated when I'm typing a new value for a parameter and I gave up on this edition, but I can't cancel it by keyboard.
Describe the solution you'd like
By pressing
Esc
I should be able to cancel my in-going edition on the Value column of the Parameters Panel as I'm able to when editing a layer name in the Layers Panel.The text was updated successfully, but these errors were encountered: