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

Add Keyboard Shortcuts #53

Open
gbroques opened this issue Apr 26, 2020 · 0 comments
Open

Add Keyboard Shortcuts #53

gbroques opened this issue Apr 26, 2020 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@gbroques
Copy link
Owner

gbroques commented Apr 26, 2020

We should consider adding keyboard shortcuts to commands on the main toolbar.

However, we want to be careful not to clash with existing FreeCAD or operating system level keyboard shortcuts.

The below table is a proposal, and needs more research.

Command Keyboard Shortcut
Add Frame Ctrl + Shift + F
Add Universal X Axis Ctrl + Shift + X
Add Universal X Axis Ctrl + Shift + Y
Add Universal X Axis Ctrl + Shift + Z
Add Extruder Ctrl + Shift + E
Add Heated Bed Ctrl + Shift + B

An example of how this can be done technically via Accel:

class My_Command_Class():

    def GetResources(self):
        return {'Pixmap'  : 'My_Command_Icon', # the name of a svg file available in the resources
                'Accel' : "Shift+S", # a default shortcut (optional)
                'MenuText': "My New Command"
                'ToolTip' : "What my new command does"}
@gbroques gbroques added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Apr 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant