Fix T76732: Error detecting modifier key clicks

At the time of checking, the previous type isn't the last key pressed.
This commit is contained in:
2020-05-14 18:01:21 +10:00
parent fee46615f4
commit 9ebb3a386e

View File

@@ -2952,7 +2952,7 @@ static int wm_handlers_do(bContext *C, wmEvent *event, ListBase *handlers)
else {
wmWindow *win = CTX_wm_window(C);
if (win) {
if (ISKEYMODIFIER(win->eventstate->prevtype)) {
if (ISKEYMODIFIER(win->eventstate->type)) {
win->eventstate->check_click = 0;
}
}