WIP: UI: Change Behavior for Multi-Select Enums #104451
|
@ -741,7 +741,7 @@ static void ui_item_enum_expand_handle(bContext *C, void *arg1, void *arg2)
|
|||
{
|
||||
wmWindow *win = CTX_wm_window(C);
|
||||
|
||||
if ((win->eventstate->modifier & KM_SHIFT) == 0) {
|
||||
if (win->eventstate->modifier & KM_CTRL) {
|
||||
uiBut *but = (uiBut *)arg1;
|
||||
const int enum_value = POINTER_AS_INT(arg2);
|
||||
|
||||
|
|
|
@ -808,7 +808,7 @@ static uiTooltipData *ui_tooltip_data_from_button_or_extra_icon(bContext *C,
|
|||
if ((but->type & UI_BTYPE_ROW) && rnaprop && RNA_property_flag(rnaprop) & PROP_ENUM_FLAG) {
|
||||
uiTooltipField *field = text_field_add(
|
||||
data, uiTooltipFormat::Style::Normal, uiTooltipFormat::ColorID::Normal);
|
||||
field->text = BLI_strdup(TIP_("(Shift-Click/Drag to select multiple)"));
|
||||
field->text = BLI_strdup(TIP_("(Ctrl-Click to deselect other items)"));
|
||||
}
|
||||
}
|
||||
/* Enum field label & tip. */
|
||||
|
|
Loading…
Reference in New Issue