Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-06-05 10:12:19 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-05 10:18:00 +0300
commit1df228a416008c3f8a768fddb57d6431cbecbed2 (patch)
treedf93f69dc809b29476086d0dd292323f41d08337 /source/blender/editors/space_image
parent80d86f303a4ac8d293fc06bc3d1ccb2cd4ebfe5b (diff)
UI: context menu for other editor types
D3458 by @billreynish w/ edits. - Context menu for dope-sheet, graph, image & node editors. - Add type to contenxt menu header. - Access with W-Key. - Change UV-editor weld key binding to Shift-W.
Diffstat (limited to 'source/blender/editors/space_image')
-rw-r--r--source/blender/editors/space_image/space_image.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_image/space_image.c b/source/blender/editors/space_image/space_image.c
index 28ce88b38f5..c143ebbcd67 100644
--- a/source/blender/editors/space_image/space_image.c
+++ b/source/blender/editors/space_image/space_image.c
@@ -302,6 +302,8 @@ static void image_keymap(struct wmKeyConfig *keyconf)
WM_keymap_add_item(keymap, "IMAGE_OT_properties", NKEY, KM_PRESS, 0, 0);
WM_keymap_add_item(keymap, "IMAGE_OT_toolshelf", TKEY, KM_PRESS, 0, 0);
+ WM_keymap_add_menu(keymap, "IMAGE_MT_specials", WKEY, KM_PRESS, 0, 0);
+
WM_keymap_add_item(keymap, "IMAGE_OT_cycle_render_slot", JKEY, KM_PRESS, 0, 0);
RNA_boolean_set(WM_keymap_add_item(keymap, "IMAGE_OT_cycle_render_slot", JKEY, KM_PRESS, KM_ALT, 0)->ptr, "reverse", true);
@@ -1134,4 +1136,3 @@ void ED_spacetype_image(void)
BKE_spacetype_register(st);
}
-