Skip to content
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

[Problem] Ctrl+A to select all the geometries in a sketch #12746

Open
2 tasks done
FEA-eng opened this issue Mar 4, 2024 · 4 comments
Open
2 tasks done

[Problem] Ctrl+A to select all the geometries in a sketch #12746

FEA-eng opened this issue Mar 4, 2024 · 4 comments
Labels
Feature FR for improvements or new features WB Sketcher Related to the Sketcher Workbench

Comments

@FEA-eng
Copy link
Contributor

FEA-eng commented Mar 4, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Problem description

Some time ago @PaddleStroke added a really cool feature that allows the use of standard copy, cut and paste keyboard shortcuts in the Sketcher (#11537). I think that it would be nice to also have the Ctrl+A shortcut implemented to select all the geometries (and then copy/cut them with another shortcut). Currently, one has to drag the selection box to do that. This could also eliminate the need for this tool: Sketcher DeleteAllGeometry since it would be just a matter of using Ctrl+A followed by Delete.

Full version info

OS: Windows 10 build 19045
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.36082 (Git)
Build type: Release
Branch: main
Hash: 7a025e4e60a607bdbdd1599627ce13bb8eeda071
Python 3.10.13, Qt 5.15.8, Coin 4.0.2, Vtk 9.2.6, OCC 7.6.3
Locale: Polish/Poland (pl_PL)

Subproject(s) affected?

Sketcher

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Be-Cool-Man
Copy link

Additionally, there should be a shortcut for selecting all constraints E.G., [CTRL]+[Shift]+[A]

@maxwxyz maxwxyz added Feature FR for improvements or new features WB Sketcher Related to the Sketcher Workbench labels Mar 4, 2024
@hasecilu
Copy link
Contributor

hasecilu commented Mar 5, 2024

According to https://wiki.freecad.org/Sandbox:Keyboard_Shortcuts shortcuts using Ctrl key should be reserved for global commands.

Ctrl+A already works on tree view and task panel, specifically for Sketcher, pressing Ctrl+A selects all elements but only the element that was originally selected is highlighted in the viewport. Using Ctrl to add another element to selection work, using Shift+Ctrl to add various elements to selection not work.

For constraints it seems all mentioned above is working.

Tested dev branch

image

@FEA-eng
Copy link
Contributor Author

FEA-eng commented Mar 7, 2024

Ctrl+A already works on tree view and task panel, specifically for Sketcher, pressing Ctrl+A selects all elements but only the element that was originally selected is highlighted in the viewport. Using Ctrl to add another element to selection work, using Shift+Ctrl to add various elements to selection not work.

Right, but it needs a major overhaul. For geometry, it works only when the Elements tab has the focus, doesn't highlight anything else than the current manual selection and doesn't work with the new copy/cut shortcuts.

@maxwxyz
Copy link
Collaborator

maxwxyz commented Mar 9, 2024

Additionally, there should be a shortcut for selecting all constraints E.G., [CTRL]+[Shift]+[A]

What would be the use case for this? Copy/Pasting constraints do not work. You could select all or multiple in the task dialog to change them to driven. There is also the command to delete all constraints.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature FR for improvements or new features WB Sketcher Related to the Sketcher Workbench
Projects
None yet
Development

No branches or pull requests

4 participants