Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_ops.c
| Show First 20 Lines • Show All 1,427 Lines • ▼ Show 20 Lines | #endif | ||||
| WM_operatortype_append(UI_OT_eyedropper_driver); | WM_operatortype_append(UI_OT_eyedropper_driver); | ||||
| } | } | ||||
| /** | /** | ||||
| * \brief User Interface Keymap | * \brief User Interface Keymap | ||||
| */ | */ | ||||
| void ED_keymap_ui(wmKeyConfig *keyconf) | void ED_keymap_ui(wmKeyConfig *keyconf) | ||||
| { | { | ||||
| wmKeyMap *keymap = WM_keymap_ensure(keyconf, "User Interface", 0, 0); | WM_keymap_ensure(keyconf, "User Interface", 0, 0); | ||||
| wmKeyMapItem *kmi; | |||||
| /* eyedroppers - notice they all have the same shortcut, but pass the event | |||||
| * through until a suitable eyedropper for the active button is found */ | |||||
| WM_keymap_add_item(keymap, "UI_OT_eyedropper_color", EKEY, KM_PRESS, 0, 0); | |||||
| WM_keymap_add_item(keymap, "UI_OT_eyedropper_colorband", EKEY, KM_PRESS, 0, 0); | |||||
| WM_keymap_add_item(keymap, "UI_OT_eyedropper_colorband_point", EKEY, KM_PRESS, KM_ALT, 0); | |||||
| WM_keymap_add_item(keymap, "UI_OT_eyedropper_id", EKEY, KM_PRESS, 0, 0); | |||||
| WM_keymap_add_item(keymap, "UI_OT_eyedropper_depth", EKEY, KM_PRESS, 0, 0); | |||||
| /* Copy Data Path */ | |||||
| WM_keymap_add_item(keymap, "UI_OT_copy_data_path_button", CKEY, KM_PRESS, KM_CTRL | KM_SHIFT, 0); | |||||
| kmi = WM_keymap_add_item(keymap, "UI_OT_copy_data_path_button", CKEY, KM_PRESS, KM_CTRL | KM_SHIFT | KM_ALT, 0); | |||||
| RNA_boolean_set(kmi->ptr, "full_path", true); | |||||
| /* keyframes */ | |||||
| WM_keymap_add_item(keymap, "ANIM_OT_keyframe_insert_button", IKEY, KM_PRESS, 0, 0); | |||||
| WM_keymap_add_item(keymap, "ANIM_OT_keyframe_delete_button", IKEY, KM_PRESS, KM_ALT, 0); | |||||
| WM_keymap_add_item(keymap, "ANIM_OT_keyframe_clear_button", IKEY, KM_PRESS, KM_SHIFT | KM_ALT, 0); | |||||
| /* drivers */ | |||||
| WM_keymap_add_item(keymap, "ANIM_OT_driver_button_add", DKEY, KM_PRESS, KM_CTRL, 0); | |||||
| WM_keymap_add_item(keymap, "ANIM_OT_driver_button_remove", DKEY, KM_PRESS, KM_CTRL | KM_ALT, 0); | |||||
| /* keyingsets */ | |||||
| WM_keymap_add_item(keymap, "ANIM_OT_keyingset_button_add", KKEY, KM_PRESS, 0, 0); | |||||
| WM_keymap_add_item(keymap, "ANIM_OT_keyingset_button_remove", KKEY, KM_PRESS, KM_ALT, 0); | |||||
| eyedropper_modal_keymap(keyconf); | eyedropper_modal_keymap(keyconf); | ||||
| eyedropper_colorband_modal_keymap(keyconf); | eyedropper_colorband_modal_keymap(keyconf); | ||||
| } | } | ||||