ShortCuts

Need help, or want to share a macro? Post here!
triplus
Posts: 8364
Joined: Mon Dec 12, 2011 4:45 pm

Re: ShortCuts

Postby triplus » Mon Jun 04, 2018 10:54 am

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

Postby zbigg » Sun Jun 17, 2018 6:55 pm

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
Posts: 4404
Joined: Thu Jan 05, 2017 9:03 pm

Re: ShortCuts

Postby Kunda1 » Sun Jun 17, 2018 7:49 pm

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.
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
zbigg
Posts: 136
Joined: Tue Dec 19, 2017 1:11 pm

Re: ShortCuts

Postby zbigg » Mon Jun 18, 2018 7:06 am

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

Re: ShortCuts

Postby triplus » Mon Jun 18, 2018 9:45 am

@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

Postby zbigg » 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?
I.e. to toggle switch between Ortho and Persp mode?
cheers,
triplus
Posts: 8364
Joined: Mon Dec 12, 2011 4:45 pm

Re: ShortCuts

Postby triplus » Sat Jun 23, 2018 9:40 pm

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

Postby zbigg » Mon Jun 25, 2018 6:49 am

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
Posts: 8364
Joined: Mon Dec 12, 2011 4:45 pm

Re: ShortCuts

Postby triplus » Wed Jun 27, 2018 1:50 pm

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
Posts: 8364
Joined: Mon Dec 12, 2011 4:45 pm

Re: ShortCuts

Postby triplus » Wed Jul 11, 2018 10:17 pm

Use Case

Customize keyboard shortcut combination used to invoke command panel.
CustomShortcut.png
CustomShortcut.png (20.23 KiB) Viewed 342 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.