ShortCuts

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: ShortCuts

Post by triplus »

I moved the default shortcut from W to Shift+Q key combination. To invoke the ShortCuts overlay feature.

P.S. To set custom key combination use the ShortCuts module. ;)
User avatar
zbigg
Posts: 136
Joined: Tue Dec 19, 2017 1:11 pm

Re: ShortCuts

Post by zbigg »

Thats nice, Ive just made short footage on YT illustrating the issue.
I wish shortcuts customization was working in a predictable manner, otherwise theres no way
to make use of FC in regular workflow, IMHO.

phpBB [video]
Last edited by zbigg on Mon Jun 18, 2018 7:05 am, edited 1 time in total.
cheers,
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: ShortCuts

Post by Kunda1 »

You can display the video like so:

Code: Select all

[video]https://youtu.be/ivtUHsJcniI[/video]
Last edited by Kunda1 on Mon Jun 18, 2018 10:32 am, edited 1 time in total.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
zbigg
Posts: 136
Joined: Tue Dec 19, 2017 1:11 pm

Re: ShortCuts

Post by zbigg »

OK, thanks , just corrected ))
cheers,
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: ShortCuts

Post by triplus »

@zbigg

It's up to you to use some existing solution. In this thread in general please report issues related to shortcuts manager provided by ShortCuts module for FreeCAD. As you can already use it to set global or per-workbench shortcuts for FreeCAD command. And if that isn't working on your side please report the issues you are experiencing.
User avatar
zbigg
Posts: 136
Joined: Tue Dec 19, 2017 1:11 pm

Re: ShortCuts

Post by zbigg »

Hi,

Ve been trying to define some shortcuts BUT:
Is it possible in FC to assign same key(s) for two different commands?
I.e. to toggle switch between Ortho and Persp mode?
cheers,
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: ShortCuts

Post by triplus »

zbigg wrote: Wed Jun 20, 2018 12:07 pm Hi,

Ve been trying to define some shortcuts BUT:
Is it possible in FC to assign same key(s) for two different commands?
By using shortcuts manager (provided by ShortCuts module for FreeCAD) you can assign the same (local) shortcut to commands located in different workbenches. Therefore you can for example use shortcut "A" in more workbenches (once per each workbench). And in each workbench a different command can be triggered.
I.e. to toggle switch between Ortho and Persp mode?
This are two separate commands and therefore you can't assign the same (global) shortcut to both. This is not FreeCAD specific as this is just how software in general works. What you would need is a toggle command. And to assign a global shortcut to it. Likely a macro based command could be created. To offer such functionality. If you are interested let me know and i can take a look.
User avatar
zbigg
Posts: 136
Joined: Tue Dec 19, 2017 1:11 pm

Re: ShortCuts

Post by zbigg »

Hi,

I just thought of such functionality that eg Blender has: you can toggle between EDIT and OBJECT mode with TAB key.
In FC it could be also *ORTHO and PERSP mode for example, reduced number of possible key combinations w/out limiting functionality I think
SPACE works in such mode already afaik.

*(Of course there are more than one type of ortho representations in euclidean geometry but we shall stick to one only.)
cheers,
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: ShortCuts

Post by triplus »

Yes there i guess could be a toggle command available in the future by default. Just like tons of other small adjustments. ;)

P.S. For now the mentioned commands are separated. Therefore you will need 2 (default or custom set) keyboard shortcut combinations to make it work.
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: ShortCuts

Post by triplus »

Use Case

Customize keyboard shortcut combination used to invoke command panel.
CustomShortcut.png
CustomShortcut.png (20.23 KiB) Viewed 2171 times
  • Command panel module should be installed.
  • Run shortcuts manager located under Tools -> Accessories -> Shortcuts global menu entry.
  • We want to set global shortcut and that is why Global shortcuts entry is selected from the drop down menu.
  • Search for "invoke command panel" command.
  • Double click on the shortcut cell and set desired custom key combination.
  • If valid key combination was entered that will be reflected in the cell (after exiting the cell edit mode).
  • Close the shortcuts preferences dialog and test the new key combination.
Post Reply