Skip to content

Copy paste keyboard UX issue #1713

Closed

Description

@Keyikedalube

Synfig version & platform:
Building from source
Debian sid

Issue description:

  1. Draw a rectangle & change its color to red
  2. Try to copy the hex color value using Ctrl+C
  3. Draw a circle and bring up its color properties dialog box
  4. 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

Activity

  1. Keyikedalube commented on Oct 31, 2020

    @Keyikedalube
    ContributorAuthor

    Looks like Widget_ColorEdit itself is the issue. Maybe this widget should be a dialog too?

    Here's my test:

    1. Try opening canvas properties dialog
    2. Copy width value
    3. And paste it to height

    Copy-paste works fine

  2. rodolforg commented on Oct 31, 2020

    @rodolforg
    Contributor

    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:

    1. Just remove it. Consequence: when the dialog window is on focus, accels/shortcuts to application/main window actions don't work.
    2. Remove it and implement 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.
    3. Similar above, but create a base dialog class with the on_key_press_event() implemented, and problematic dialogs inherits from it.
  3. Keyikedalube commented on Nov 5, 2020

    @Keyikedalube
    ContributorAuthor

    I prefer option 2

    UPDATE:

  4. added a commit that references this issue on Nov 6, 2020
    038cd2f
  5. added a commit that references this issue on Nov 6, 2020
    7deb121
  6. added a commit that references this issue on Dec 30, 2020
    f65907e
  7. added a commit that references this issue on Feb 28, 2021
    49b0c25
  8. added a commit that references this issue on Apr 20, 2021
    7c3f97e
  9. rodolforg commented on May 9, 2021

    @rodolforg
    Contributor

    This issue is already fixed in v1.4.1.

  10. added 2 commits that reference this issue on Aug 9, 2021
    8ed6129
    d6cf4b5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions