Macro Unbind Numpad Shortcuts/it: Difference between revisions

From FreeCAD Documentation
(Created page with " Macro Annulla collegamenti al tastierino numerico")
 
(Created page with "{{Macro/it|Icon=Text-x-python|Name=Macro Unbind Numpad Shortcuts|Name/it=Annulla collegamenti al tastierino numerico|Description=Riassocia i comandi di visualizzazione standar...")
Line 1: Line 1:


{{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}}
{{Macro/it|Icon=Text-x-python|Name=Macro Unbind Numpad Shortcuts|Name/it=Annulla collegamenti al tastierino numerico|Description=Riassocia i comandi di visualizzazione standard dai tasti numerici a Ctrl + digit, in modo che non ruotino la vista per errore durante l'immissione dei numeri.|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.

Revision as of 20:17, 23 April 2018

File:Text-x-python Macro Unbind Numpad Shortcuts

Descrizione
Riassocia i comandi di visualizzazione standard dai tasti numerici a Ctrl + digit, in modo che non ruotino la vista per errore durante l'immissione dei numeri.

Versione macro: 1.0
Ultima modifica: 2018-04-22
Autore: DeepSOIC
Autore
DeepSOIC
Download
None
Link
Versione macro
1.0
Data ultima modifica
2018-04-22
Versioni di FreeCAD
None
Scorciatoia
Nessuna
Vedere anche
Nessuno

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.

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)
Other languages: