You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Synfig version & platform:
Building from source
Debian sid
Issue description:
Draw a rectangle & change its color to red
Try to copy the hex color value using Ctrl+C
Draw a circle and bring up its color properties dialog box
Paste Ctrl+V
Another rectangle layer gets pasted. I think this is due to bad input handling design.
When a user highlights the color code and hits Ctrl+C, the color should be copied because user's focus is on the dialog box now not the canvas workspace.
Right-clicking copy and paste works but that's tedious. Keyboard saves a lot more time than mouse
Thank you, @Keyikedalube !!
I was pretty sure that was a 'external' dialog problem (color, gradient, ...), that main app catch keypress events before those dialogs for accels!
So I checked the differences between Dialog_Color and CanvasProperties, and here it is: add_accel_group(App::ui_manager()->get_accel_group());
This line makes in those problematic dialogs is the responsible to ensure the Actions' accel taking precedence regular actions.
Three solutions:
Just remove it. Consequence: when the dialog window is on focus, accels/shortcuts to application/main window actions don't work.
Activity
Keyikedalube commentedon Oct 31, 2020
Looks like
Widget_ColorEdititself is the issue. Maybe this widget should be a dialog too?Here's my test:
Copy-paste works fine
rodolforg commentedon Oct 31, 2020
Thank you, @Keyikedalube !!
I was pretty sure that was a 'external' dialog problem (color, gradient, ...), that main app catch keypress events before those dialogs for accels!
So I checked the differences between Dialog_Color and CanvasProperties, and here it is:
add_accel_group(App::ui_manager()->get_accel_group());This line makes in those problematic dialogs is the responsible to ensure the Actions' accel taking precedence regular actions.
Three solutions:
on_key_press_event()for all problematic dialogs in a similar way I did in MainWindow when I fixed Copy-pasting using keyboard shortcuts should respect input focus [$10 awarded] #257 and now 'we' discovered this problem you reported.on_key_press_event()implemented, and problematic dialogs inherits from it.Keyikedalube commentedon Nov 5, 2020
I prefer option 2UPDATE:
For now only Dock keyframes doesn't capture space input in entry text field #1820 needs
-andspacebehavior but not this color edit widgetDock keyframes doesn't capture space input in entry text field #1820 and this (and maybe more) needs this global Copy/Paste behavior
restore ctrl-c ctrl+v ctrl+a in Color and Gradient Dialogs
Restore ctrl-c ctrl+v ctrl+a in Color and Gradient Dialogs (#1821)
Restore ctrl-c ctrl+v ctrl+a in Color and Gradient Dialogs (synfig#1821)
Restore ctrl-c ctrl+v ctrl+a in Color and Gradient Dialogs (synfig#1821)
Restore ctrl-c ctrl+v ctrl+a in Color and Gradient Dialogs (#1821)
rodolforg commentedon May 9, 2021
This issue is already fixed in v1.4.1.
Restore ctrl-c ctrl+v ctrl+a in Color and Gradient Dialogs (synfig#1821)
Restore ctrl-c ctrl+v ctrl+a in Color and Gradient Dialogs (synfig#1821)