If a modifier key is held, don't open context menu
D1019 by @gregzaal (minor edits by me). Thanks for the patch!
This commit is contained in:
@@ -6392,7 +6392,10 @@ static int ui_do_button(bContext *C, uiBlock *block, uiBut *but, const wmEvent *
|
|||||||
return WM_UI_HANDLER_BREAK;
|
return WM_UI_HANDLER_BREAK;
|
||||||
}
|
}
|
||||||
/* handle menu */
|
/* handle menu */
|
||||||
else if (event->type == RIGHTMOUSE && event->val == KM_PRESS) {
|
else if (event->type == RIGHTMOUSE &&
|
||||||
|
event->val == KM_PRESS &&
|
||||||
|
((event->ctrl + event->alt + event->shift) == 0))
|
||||||
|
{
|
||||||
/* RMB has two options now */
|
/* RMB has two options now */
|
||||||
if (ui_but_menu(C, but)) {
|
if (ui_but_menu(C, but)) {
|
||||||
return WM_UI_HANDLER_BREAK;
|
return WM_UI_HANDLER_BREAK;
|
||||||
|
Reference in New Issue
Block a user