Fix #35267: cmd+v, cmd+c on OS X for copy/paste worked in some editors like the 3D
[blender.git] / source / blender / editors / armature / armature_ops.c
index f87d4bc4d47c4a585f54a0e2b1072019ed0db1ed..fc07c66fd8a232011fd9d067ce6d4fa1fdecc5c3 100644 (file)
@@ -323,11 +323,16 @@ void ED_keymap_armature(wmKeyConfig *keyconf)
        WM_keymap_add_item(keymap, "POSE_OT_rotation_mode_set", RKEY, KM_PRESS, KM_CTRL, 0);
        
        WM_keymap_add_item(keymap, "POSE_OT_copy", CKEY, KM_PRESS, KM_CTRL, 0);
+       WM_keymap_add_item(keymap, "POSE_OT_copy", CKEY, KM_PRESS, KM_OSKEY, 0);
        kmi = WM_keymap_add_item(keymap, "POSE_OT_paste", VKEY, KM_PRESS, KM_CTRL, 0);
        RNA_boolean_set(kmi->ptr, "flipped", FALSE);
+       kmi = WM_keymap_add_item(keymap, "POSE_OT_paste", VKEY, KM_PRESS, KM_OSKEY, 0);
+       RNA_boolean_set(kmi->ptr, "flipped", FALSE);
 
        kmi = WM_keymap_add_item(keymap, "POSE_OT_paste", VKEY, KM_PRESS, KM_CTRL | KM_SHIFT, 0);
        RNA_boolean_set(kmi->ptr, "flipped", TRUE);
+       kmi = WM_keymap_add_item(keymap, "POSE_OT_paste", VKEY, KM_PRESS, KM_OSKEY | KM_SHIFT, 0);
+       RNA_boolean_set(kmi->ptr, "flipped", TRUE);
        
        kmi = WM_keymap_add_item(keymap, "POSE_OT_select_all", AKEY, KM_PRESS, 0, 0);
        RNA_enum_set(kmi->ptr, "action", SEL_TOGGLE);