UI: limit listview arrow/wheel bindings
Allow Ctrl-Up for eg to be used when in a list view.
This commit is contained in:
@@ -8451,8 +8451,8 @@ static int ui_handle_list_event(bContext *C, const wmEvent *event, ARegion *ar,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (val == KM_PRESS) {
|
if (val == KM_PRESS) {
|
||||||
if (ELEM(type, UPARROWKEY, DOWNARROWKEY) ||
|
if ((ELEM(type, UPARROWKEY, DOWNARROWKEY) && !IS_EVENT_MOD(event, shift, ctrl, alt, oskey)) ||
|
||||||
((ELEM(type, WHEELUPMOUSE, WHEELDOWNMOUSE) && event->ctrl)))
|
((ELEM(type, WHEELUPMOUSE, WHEELDOWNMOUSE) && event->ctrl && !IS_EVENT_MOD(event, shift, alt, oskey))))
|
||||||
{
|
{
|
||||||
const int value_orig = RNA_property_int_get(&listbox->rnapoin, listbox->rnaprop);
|
const int value_orig = RNA_property_int_get(&listbox->rnapoin, listbox->rnaprop);
|
||||||
int value, min, max, inc;
|
int value, min, max, inc;
|
||||||
|
Reference in New Issue
Block a user