Index: source/blender/src/space.c =================================================================== --- source/blender/src/space.c (Revision 17444) +++ source/blender/src/space.c (Arbeitskopie) @@ -1241,6 +1241,14 @@ char ascii= evt->ascii; if(curarea->win==0) return; /* when it comes from sa->headqread() */ + +#ifndef DISABLE_PYTHON + /* run any view3d event handler script links */ + if (sa->scriptlink.totscript) { + if (BPY_do_spacehandlers(sa, event, val, SPACEHANDLER_VIEW3D_EVENT)) + return; /* return if event was processed (swallowed) by handler(s) */ + } +#endif if(val) { @@ -1252,13 +1260,6 @@ * - grease-pencil also defaults to leftmouse */ if(event==LEFTMOUSE) { -#ifndef DISABLE_PYTHON - /* run any view3d event handler script links */ - if (sa->scriptlink.totscript) { - if (BPY_do_spacehandlers(sa, event, val, SPACEHANDLER_VIEW3D_EVENT)) - return; /* return if event was processed (swallowed) by handler(s) */ - } -#endif if(gpencil_do_paint(sa, L_MOUSE)) return; if(BIF_do_manipulator(sa)) return; } @@ -1315,10 +1316,12 @@ } #ifndef DISABLE_PYTHON - /* run any view3d event handler script links */ + /* run any view3d event handler script links if (event && sa->scriptlink.totscript) if (BPY_do_spacehandlers(sa, event, val, SPACEHANDLER_VIEW3D_EVENT)) - return; /* return if event was processed (swallowed) by handler(s) */ + return; + */ + #endif /* TEXTEDITING?? */