Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-05-14 11:01:21 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-05-14 11:02:37 +0300
commit9ebb3a386e7243c7931449cad68a5923dc982ba0 (patch)
tree21ee5a1364f500533001db1c67399281c3a6f12f
parentfee46615f43ffaef06c34623c881cf1f7ffab747 (diff)
Fix T76732: Error detecting modifier key clicks
At the time of checking, the previous type isn't the last key pressed.
-rw-r--r--source/blender/windowmanager/intern/wm_event_system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c
index f77c5cfde7d..2780183c041 100644
--- a/source/blender/windowmanager/intern/wm_event_system.c
+++ b/source/blender/windowmanager/intern/wm_event_system.c
@@ -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;
}
}