Fix T59474: Crash assign shortcuts

This commit is contained in:
2019-05-03 17:08:47 +10:00
parent fbd366713e
commit 0d2e7f2106

View File

@@ -3949,6 +3949,9 @@ static int ui_do_but_HOTKEYEVT(bContext *C,
if (ELEM(event->type, MOUSEMOVE, INBETWEEN_MOUSEMOVE)) {
return WM_UI_HANDLER_CONTINUE;
}
else if (event->type == UNKNOWNKEY) {
return WM_UI_HANDLER_CONTINUE;
}
if (event->type == LEFTMOUSE && event->val == KM_PRESS) {
/* only cancel if click outside the button */