forked from bartvdbraak/blender
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:
parent
ce6ba965dc
commit
c792e54699
@ -6392,7 +6392,10 @@ static int ui_do_button(bContext *C, uiBlock *block, uiBut *but, const wmEvent *
|
||||
return WM_UI_HANDLER_BREAK;
|
||||
}
|
||||
/* 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 */
|
||||
if (ui_but_menu(C, but)) {
|
||||
return WM_UI_HANDLER_BREAK;
|
||||
|
Loading…
Reference in New Issue
Block a user