Campbell Barton
939e4030b1
Fix T64655: Quad view toggle conflicts on macOS
...
Cmd-Alt-Q is a system shortcut on macOS, use Ctrl-Alt-Q.
2019-11-27 00:43:33 +11:00
Campbell Barton
11198ce48a
Merge branch 'blender-v2.81-release'
2019-11-14 16:58:49 +11:00
Campbell Barton
f16f2f8762
Fix macOS using conflicting key binding Cmd-.
...
Used for toggle origins, conflicts on macOS, use Ctrl-. instead.
2019-11-14 16:55:31 +11:00
Campbell Barton
de152d0724
Tool System: Use tapping Alt as a leader key to switch tools
...
Now tapping Alt prompts for a second input to switch tools.
Initial implementation of T69992
2019-10-28 22:59:59 +11:00
Campbell Barton
493fa59225
Fix keymap export of enum-flag properties
2019-09-06 04:44:12 +10:00
Campbell Barton
0d719fcacb
Cleanup: spelling
2019-08-12 01:10:43 +10:00
Brecht Van Lommel
604fdb6e85
Spelling fixes in comments and descriptions, patch by luzpaz
...
Differential Revision: https://developer.blender.org/D3744
2019-07-31 14:27:35 +02:00
Campbell Barton
daa7b56890
Fix T67874: Show gizmo incorrectly uses Cmd-` on macOS
2019-07-30 01:55:06 +10:00
Campbell Barton
410eddcbcc
Fix T67603: Selecting toolbar from search raises error
2019-07-25 13:35:01 +10:00
Campbell Barton
f1af8908b3
Fix keymap editor missing tools for UV/Image space
2019-07-12 19:05:03 +10:00
Campbell Barton
d7e7452067
Quiet warning creating sculpt brush tooltips
2019-06-06 15:59:27 +10:00
Campbell Barton
dea8fb2bea
Fix: Nav_bar context menu in preferences
...
Also merge the keymaps for header/footer/navbar.
D4736 by @Gvgeo with edits
2019-05-09 18:40:42 +10:00
Campbell Barton
630e94791f
Keymap: automate using OSKey for Ctrl on macos
...
Replace hard coded use of oskey with a function.
Add checks to avoid conflicting bindings with the OS.
2019-05-09 16:18:50 +10:00
George Vogiatzis
a180b754eb
Interface: New region type 'Footer', used by text editor
...
* It can be hidden by dragging it up/down.
* It can be at the top or bottom, independent of the header.
* It uses the color theme from the header.
* It does not change its color, when the area becomes active.
Currently, it is used in the text editor to display the file path.
Differential Revision: https://developer.blender.org/D4601
2019-04-05 13:48:26 +02:00
Campbell Barton
1d1e06b376
Cleanup: rename color band to color ramp
2019-03-18 18:26:14 +11:00
Campbell Barton
69bf4e5e36
Cleanup: unused variables
2019-03-17 21:14:43 +11:00
Campbell Barton
d4156b46d7
Tool System: use categories for tool identifiers
...
Tools that come with Blender use 'builtin' or 'builtin_brush' prefix.
2019-03-15 16:48:01 +11:00
Campbell Barton
3400fe3ece
Tool System: split UI label from tool identifiers
...
Prepare for exposing tool registration to the Python API.
- Generated tools can use their own prefix so naming collisions
won't happen between hard coded & generated tools.
- Add-on authors can use the add-on name as a prefix.
Currently the names match, renaming will happen next.
2019-03-15 14:53:08 +11:00
Campbell Barton
3b3eac3d4b
Keymap: tweak keymap loading type checks
...
For full keymaps, ensure keymap items are lists to allow predictable
manipulation at runtime.
When calling `keymap_init_from_data` directly, allow any sequence type
to allow tools to define their keymaps as tuples.
2019-03-14 15:53:48 +11:00
Campbell Barton
68a0d35036
Tool System: add select tools to particle edit
2019-03-06 01:26:30 +11:00
Howard Trickey
9ca6fc41ae
Bevel: Make modal keymap instead of hardcoded.
...
Also added keys for toggling harden normals,
and cycling through miter types.
Still to do: add some shortcuts for affecting the
spread value for arc miters.
2019-02-10 16:08:25 -05:00
Campbell Barton
a6b2ec0bc2
Fix toolbar accelerator w/ user defined keyconfig
2019-01-14 18:59:26 +11:00
Campbell Barton
96f762500e
Cleanup: tweak last commit
2019-01-07 11:16:11 +11:00
Campbell Barton
430cf7e15e
Fix generated toolbar keymap w/ annotation tool
2019-01-07 11:00:46 +11:00
Antonioya
780f0f646d
GP: Rename CTX and OB modes
...
Part of T59335.
2018-12-14 16:52:12 +01:00
Campbell Barton
4357fb63db
Keymap: event type filter w/ finding keymap items
...
Now its possibly to ask for only keyboard/mouse/ndof events
when finding key map items.
2018-12-12 21:43:26 +11:00
Campbell Barton
220ab6290e
Fix toolbar key-accelerator w/ LMB select
...
Tweak events were masking hotkey access.
Reported in T55162
2018-12-12 09:40:37 +11:00
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