Fix #111212: Crash in menu search when cursor is outside the window

When the mouse cursor is outside the window, it's expected to not have
an active area set in context on such screen level operators. Use the
existing context query that handles this case.
This commit is contained in:
Julian Eisel
2023-08-25 19:47:36 +02:00
parent e57726594d
commit 56781c80b7

View File

@@ -3240,7 +3240,7 @@ static int keyframe_jump_exec(bContext *C, wmOperator *op)
static bool keyframe_jump_poll(bContext *C)
{
/* There is a keyframe jump operator specifically for the Graph Editor. */
return ED_operator_screenactive_norender(C) && CTX_wm_area(C)->spacetype != SPACE_GRAPH;
return ED_operator_screenactive_norender(C) && ED_operator_graphedit_active(C);
}
static void SCREEN_OT_keyframe_jump(wmOperatorType *ot)