Macro Unbind Numpad Shortcuts: Difference between revisions
No edit summary |
(Use {{MacroCode}}) |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
⚫ | |||
<translate> |
<translate> |
||
<!--T:1--> |
|||
{{Macro |
|||
|Name=Macro Unbind Numpad Shortcuts |
|||
|Icon=Macro_Unbind_Numpad_Shortcuts.png |
|||
|Description=When entering numbers, and the number input box is not properly focused, FreeCAD will react to digits by switching standard views. This macro is a quick way to re-bind the shortcuts to Ctrl+number. Doesn't help very much with entering numbers, but at least the view won't spin like crazy. |
|||
|Author=DeepSOIC |
|||
|Version=1.0 |
|||
|Date=2018-04-22 |
|||
|FCVersion=All |
|||
|Download=[https://www.freecadweb.org/wiki/images/1/1e/Macro_Unbind_Numpad_Shortcuts.png ToolBar Icon] |
|||
}} |
|||
==Description== <!--T:2--> |
|||
{{Macro|Icon=Text-x-python|Name=Macro Unbind Numpad Shortcuts|Description=rebinds standard view commands from digit keys to Ctrl+digit, so that they don't spin the view by accident when entering numbers.|Author=DeepSOIC|Version=1.0|Date=2018-04-22}} |
|||
When entering numbers, and the number input box is not properly focused, FreeCAD will react to digits by switching standard views. This macro is a quick way to re-bind the shortcuts to Ctrl+number. Doesn't help very much with entering numbers, but at least the view won't spin like crazy. |
When entering numbers, and the number input box is not properly focused, FreeCAD will react to digits by switching standard views. This macro is a quick way to re-bind the shortcuts to Ctrl+number. Doesn't help very much with entering numbers, but at least the view won't spin like crazy. |
||
<!--T:3--> |
|||
See forum thread [https://forum.freecadweb.org/viewtopic.php?f=3&t=26667 How to turn off (disable) Numpad navigation?] |
See forum thread [https://forum.freecadweb.org/viewtopic.php?f=3&t=26667 How to turn off (disable) Numpad navigation?] |
||
==How to use:== |
==How to use:== <!--T:4--> |
||
<!--T:5--> |
|||
1. Copy-paste macro code to Py console of FreeCAD. |
1. Copy-paste macro code to Py console of FreeCAD. |
||
<!--T:6--> |
|||
2. Press enter twice (to make sure everything is executed). |
2. Press enter twice (to make sure everything is executed). |
||
<!--T:7--> |
|||
3. Restart FreeCAD for the changes to take effect. |
3. Restart FreeCAD for the changes to take effect. |
||
==Script== <!--T:8--> |
|||
</translate> |
</translate> |
||
⚫ | |||
ToolBar Icon [[Image:Macro_Unbind_Numpad_Shortcuts.png]] |
|||
'''Macro_Unbind_Numpad_Shortcuts.FCMacro''' |
|||
⚫ | |||
preset = [ |
preset = [ |
||
("Std_ViewAxo" , "Ctrl+0"), |
("Std_ViewAxo" , "Ctrl+0"), |
||
Line 29: | Line 50: | ||
App.ParamGet("User parameter:BaseApp/Preferences/Shortcut").SetString(cmd, shortcut) |
App.ParamGet("User parameter:BaseApp/Preferences/Shortcut").SetString(cmd, shortcut) |
||
}} |
}} |
||
⚫ |
Revision as of 01:23, 8 May 2020
Description |
---|
When entering numbers, and the number input box is not properly focused, FreeCAD will react to digits by switching standard views. This macro is a quick way to re-bind the shortcuts to Ctrl+number. Doesn't help very much with entering numbers, but at least the view won't spin like crazy. Macro version: 1.0 Last modified: 2018-04-22 FreeCAD version: All Download: ToolBar Icon Author: DeepSOIC |
Author |
DeepSOIC |
Download |
ToolBar Icon |
Links |
Macros recipes How to install macros How to customize toolbars |
Macro Version |
1.0 |
Date last modified |
2018-04-22 |
FreeCAD Version(s) |
All |
Default shortcut |
None |
See also |
None |
Description
When entering numbers, and the number input box is not properly focused, FreeCAD will react to digits by switching standard views. This macro is a quick way to re-bind the shortcuts to Ctrl+number. Doesn't help very much with entering numbers, but at least the view won't spin like crazy.
See forum thread How to turn off (disable) Numpad navigation?
How to use:
1. Copy-paste macro code to Py console of FreeCAD.
2. Press enter twice (to make sure everything is executed).
3. Restart FreeCAD for the changes to take effect.
Script
Macro_Unbind_Numpad_Shortcuts.FCMacro
preset = [ ("Std_ViewAxo" , "Ctrl+0"), ("Std_ViewFront" , "Ctrl+1"), ("Std_ViewTop" , "Ctrl+2"), ("Std_ViewRight" , "Ctrl+3"), ("Std_ViewRear" , "Ctrl+4"), ("Std_ViewBottom", "Ctrl+5"), ("Std_ViewLeft" , "Ctrl+6"), ] for (cmd, shortcut) in preset: App.ParamGet("User parameter:BaseApp/Preferences/Shortcut").SetString(cmd, shortcut)