[#24171] Tab key no longer responds from UV / Image Editor
authorCampbell Barton <ideasman42@gmail.com>
Wed, 13 Oct 2010 01:58:09 +0000 (01:58 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 13 Oct 2010 01:58:09 +0000 (01:58 +0000)
source/blender/editors/mesh/mesh_ops.c
source/blender/editors/space_image/space_image.c

index fa055a385f395fbd8c27a8b0025fb0af4ee0625f..51a4c67b19b9841f23b2f0ce55ca5a22344dc39d 100644 (file)
@@ -262,7 +262,7 @@ void ED_keymap_mesh(wmKeyConfig *keyconf)
        WM_keymap_add_item(keymap, "MESH_OT_normals_make_consistent", NKEY, KM_PRESS, KM_CTRL, 0);
        RNA_boolean_set(WM_keymap_add_item(keymap, "MESH_OT_normals_make_consistent", NKEY, KM_PRESS, KM_SHIFT|KM_CTRL, 0)->ptr, "inside", 1);
        
-       WM_keymap_add_item(keymap, "view3d.edit_mesh_extrude_move_normal", EKEY, KM_PRESS, 0, 0);
+       WM_keymap_add_item(keymap, "VIEW3D_OT_edit_mesh_extrude_move_normal", EKEY, KM_PRESS, 0, 0); /* python operator */
        WM_keymap_add_item(keymap, "VIEW3D_OT_edit_mesh_extrude_individual_move", EKEY, KM_PRESS, KM_SHIFT, 0);
        WM_keymap_add_menu(keymap, "VIEW3D_MT_edit_mesh_extrude", EKEY, KM_PRESS, KM_ALT, 0);
        
index 66e279935327ee79b473cae32a4fa285c55cfcda..a6deb73f2e7633074f6fcef5eca19bf6466051c0 100644 (file)
@@ -485,6 +485,7 @@ void image_operatortypes(void)
 void image_keymap(struct wmKeyConfig *keyconf)
 {
        wmKeyMap *keymap= WM_keymap_find(keyconf, "Image Generic", SPACE_IMAGE, 0);
+       wmKeyMapItem *kmi;
        
        WM_keymap_add_item(keymap, "IMAGE_OT_new", NKEY, KM_PRESS, KM_ALT, 0);
        WM_keymap_add_item(keymap, "IMAGE_OT_open", OKEY, KM_PRESS, KM_ALT, 0);
@@ -524,6 +525,11 @@ void image_keymap(struct wmKeyConfig *keyconf)
        RNA_enum_set(WM_keymap_add_item(keymap, "IMAGE_OT_curves_point_set", ACTIONMOUSE, KM_PRESS, KM_SHIFT, 0)->ptr, "point", 1);
 
        WM_keymap_add_item(keymap, "IMAGE_OT_toolbox", SPACEKEY, KM_PRESS, 0, 0);
+
+       /* toggle editmode is handy to have while UV unwrapping */
+       kmi= WM_keymap_add_item(keymap, "OBJECT_OT_mode_set", TABKEY, KM_PRESS, 0, 0);
+       RNA_enum_set(kmi->ptr, "mode", OB_MODE_EDIT);
+       RNA_boolean_set(kmi->ptr, "toggle", 1);
 }
 
 /* dropboxes */