Campbell Barton
e1b8645c6a
Keymap: use strict format for keymap definitions
...
Ensure we use lists for keymap items and item properties.
This means scripts can access keymap definitions from other layouts,
manipulating them without sometimes encountering a tuple that needs
to be converted into a list.
2018-12-02 14:02:03 +11:00
Campbell Barton
c906cdc197
Cleanup: remove unused code & add comments
2018-11-26 16:07:03 +11:00
Campbell Barton
811814b60c
Keymap: remove redundant keys from toolbar popup
...
Adjust the keymap so tools that don't exist wont use keys
from the default keymap.
2018-11-23 15:46:47 +11:00
Campbell Barton
ca5dd63618
Fix toolbar keymap accumulating items
...
Create a temporary keymap with items from the original.
2018-11-23 15:19:57 +11:00
Campbell Barton
5155572fc7
Keymap: add popup keymap
...
Allow manually mapping keys for the popup toolbar.
Useful for tools that don't have immediate access,
add transform, annotate & measure.
2018-11-22 16:52:57 +11:00
Campbell Barton
d0ac13d6b1
Cleanup: minor simplification of keyconfig merge
2018-11-22 16:33:57 +11:00
Campbell Barton
d5f1d4f789
Cleanup: utility function to avoid duplicate keys
2018-11-22 11:54:53 +11:00
Campbell Barton
553307bec1
Tool System: auto-assign A-Z keys for toolbar popup
...
Assign keys based on tool name when they're free, allows:
Space-T for Transform, Space-A for Annotate.
2018-11-22 11:35:46 +11:00
Campbell Barton
120be7740d
Fix toolbar popup keymap not allowing 'A' key
2018-11-22 11:33:10 +11:00
Campbell Barton
3b7daa5bf4
Tool System: Updates for keymap stored as string
2018-11-22 11:13:53 +11:00
Campbell Barton
916446e83f
Cleanup: move keymap hierarchy into own file
2018-11-20 11:38:13 +11:00
Campbell Barton
bb5a96e76e
Cleanup: move toolbar keymap generation to bl_keymap_utils
...
The function is getting complicated, any refactoring
would be best done outside of 'space_toolsystem_common'.
2018-11-20 11:17:36 +11:00
Campbell Barton
f8c16b0175
Cleanup: move bpy_extras.keyconfig_utils to own module
...
bpy_extras were meant to be useful high-level helper functions for
script authors to perform common operations,
to avoid writing to verbose API's.
bpy_extras.keymap_utils contains some specialized API calls
mainly intended for Blender's own internal use.
Move keymap import export to internal API.
2018-11-20 11:06:01 +11:00