[Bf-blender-cvs] [0d2e7f21063] master: Fix T59474: Crash assign shortcuts

Campbell Barton noreply at git.blender.org
Fri May 3 09:12:52 CEST 2019


Commit: 0d2e7f210635955107c994e93ea10f70fe61a37c
Author: Campbell Barton
Date:   Fri May 3 17:08:47 2019 +1000
Branches: master
https://developer.blender.org/rB0d2e7f210635955107c994e93ea10f70fe61a37c

Fix T59474: Crash assign shortcuts

===================================================================

M	source/blender/editors/interface/interface_handlers.c

===================================================================

diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c
index 8f19f40d1c0..111dfe01319 100644
--- a/source/blender/editors/interface/interface_handlers.c
+++ b/source/blender/editors/interface/interface_handlers.c
@@ -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 */



More information about the Bf-blender-cvs mailing list