fritzing / fritzing-app

Fritzing desktop application
http://fritzing.org
Other
3.95k stars 819 forks source link

Ctrl+drag should do something #1085

Open davidperrenoud opened 10 years ago

davidperrenoud commented 10 years ago

From bryant.m...@gmail.com on May 27, 2010 14:03:24

Seems like ctrl+drag should do something to a part. It currently doesn't even drag the part, which makes no sense. I know in Simulink ctrl+drag copies a block, and that paradigm would translate nicely to Fritzing. I've already tried to use it several times as it's very handy.

Talking to a friend about ctrl+drag he mentioned some programs use it to snap-to-grid. This would compliment the align-to-grid feature quite nicely as you could use it on a part-by-part basis.

Original issue: http://code.google.com/p/fritzing/issues/detail?id=1085

davidperrenoud commented 10 years ago

From bryant.m...@gmail.com on June 07, 2010 09:37:13

I think there's only a few options for what ctrl+drag would imply to the user, listed below. I also think these actions should be separate, though the ctrl press does different things depending on when it was pressed.

Do any of these options sound reasonable? I don't think shift+drag is currently used, so maybe shift+drag should trigger the snap-to-grid behavior and ctrl+drag would clone the part.

davidperrenoud commented 10 years ago

From irasc...@gmail.com on June 07, 2010 09:45:55

Shift-drag is already in use to constrain along the x or y axis as you move something. The current set of mouse modifier keys is listed in the tips and tricks dialog (in the help menu).

Based on prior experience, getting consensus on modifier keys is not an easy task.

Marking this low priority.

Labels: -Priority-Medium Priority-Low

davidperrenoud commented 10 years ago

From andre.knoerig@gmail.com on June 07, 2010 09:55:15

Ctrl+drag is pretty common for copying elements. Especially in graphics packages, which are a good model for Fritzing. The cursor is usually enhanced by a '+' sign to show what's going to happen. I wouldn't make a distinction between ctrl+drag and drag+ctrl, though, as that would be quite unusual and confusing. They both should trigger the same behaviour.

Labels: -Type-Defect Type-Enhancement Component-GUI

davidperrenoud commented 10 years ago

From bryant.m...@gmail.com on June 07, 2010 10:06:12

So would a patch that contributed this ctrl+drag cloning functionality be added? If it would, I'd be willing to work on this.

davidperrenoud commented 10 years ago

From andre.knoerig@gmail.com on June 07, 2010 12:53:42

Yes, that would be nice, thanks!

davidperrenoud commented 10 years ago

From irasc...@gmail.com on June 08, 2010 00:27:07

Actually, there is an open issue #753 because the alt key doesn't work under linux. So if we have a free modifier key available, then we should remap alt-key functionality to the control key.

The only other serious use of the control key currently is to modify the mouse wheel input, but I think that doesn't conflict with control drag.

davidperrenoud commented 10 years ago

From irasc...@gmail.com on June 08, 2010 03:10:58

Issue #753 has been closed (by using meta- under linux and alt- under mac and windows), so it's no longer relevant to this issue.

However, control-click under mac seems to generate a right-click, so I'm not sure how control-drag would work on that platform.

davidperrenoud commented 10 years ago

From bryant.m...@gmail.com on June 08, 2010 08:50:47

ctrl on other platforms translates to cmd on mac, so the shortcut on the mac would be cmd+click. That is not currently a shortcut for any operating system action.

davidperrenoud commented 10 years ago

From irasc...@gmail.com on July 02, 2011 02:19:24

Owner: andre.knoerig@gmail.com

davidperrenoud commented 10 years ago

From andre.knoerig@gmail.com on July 02, 2011 03:54:29

I think we should really go with comments 3 and 8.

Btw, we migh also want to add Shift+Click for selecting multiple parts. I know that we already have Ctrl+Click for doing that, but even I often intuitively try Shift first. Why not have both, since it's unused.

Owner: irasc...@gmail.com

davidperrenoud commented 10 years ago

From irasc...@gmail.com on August 04, 2011 23:56:32

ctrl+drag is now being used to draw curves in wires and legs. Not sure that multiple mappings would be a good idea.

failiz commented 3 years ago

Control+drag is used for curvy wires. Close the issue? The only thing is that if it apply to drag a connector, the connector can be paced out of the grid, feature or bug? If it is a bug, a new issue with a good tithe should be created.