Blender Git Loki

Git Commits -> Revision 718bf8f

Revision 718bf8f by Julian Eisel (master)
September 5, 2016, 15:28 (GMT)
UI: Ctrl+Tab and Ctrl+Shift+Tab to cycle through space context "tabs"

In User Preferences, Properties Editor and toolshelf, Ctrl+Tab and Ctrl+Shift+Tab now activates the next or previous space context (or category in case of toolshelf tabs), respectively.

For Properties Editor such functionality was completely missing, only toolshelf allowed cycling using ctrl+mousewheel (or only mousewheel while hovering tab region). Ctrl+Tab and Ctrl+Shift+Tab are common web browser shortcuts, so they're a reasonable choice to go with.
Reaching the first/last item doesn't cause the cycling to stop, we continue at the other end of the list then. (I didn't add this to Ctrl+Mousewheel toggling in toolshelf since I wanted to keep its behavior unchanged.)

We could get rid of (Ctrl+)Mousewheel cycling in toolshelf, but this may break user habits.

The cycling happens using a new operator, UI_OT_space_context_cycle, for toolshelf tabs it's hardcoded in panel handling code though.
Generalized rna_property_enum_step a bit and moved it to rna_access.c to allow external reuse.

Reviewed By: venomgfx
Differential Revision: https://developer.blender.org/D2189

Commit Details:

Full Hash: 718bf8fd9d17bddf500bd6b878b0ebcf0d950584
Parent Commit: 922aefb
Lines Changed: +178, -60

7 Modified Paths:

/source/blender/editors/include/UI_interface.h (+6, -0) (Diff)
/source/blender/editors/interface/interface_ops.c (+73, -0) (Diff)
/source/blender/editors/interface/interface_panel.c (+50, -26) (Diff)
/source/blender/editors/interface/interface_regions.c (+2, -33) (Diff)
/source/blender/editors/screen/screen_ops.c (+7, -1) (Diff)
/source/blender/makesrna/intern/rna_access.c (+39, -0) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021