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:
Campbell Barton 2020-05-14 18:01:21 +10:00
parent fee46615f4
commit 9ebb3a386e
Notes: blender-bot 2023-02-14 11:21:40 +01:00
Referenced by issue #76732, Alt+Scroll scrubbing activates Alt+ Viewport menu in some cases
1 changed files with 1 additions and 1 deletions

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;
}
}