Commit c9636414 authored by Ivica Bukvic's avatar Ivica Bukvic Committed by Albert Gräf
Browse files

Fixed crasher when pressing a key inside non-canvas window

* Fun to know that canvas_key is called even when you are not inside a canvas...
parent 85883eef
......@@ -5478,7 +5478,7 @@ void canvas_key(t_canvas *x, t_symbol *s, int ac, t_atom *av)
// now broadcast key press to key et al. objects
// ico@vt.edu 20200918: only do so if we do not have an object
// that has grabbed the keyboard, such as gatom or iemgui numbox
if (!x->gl_editor->e_keyfn)
if (!x || !x->gl_editor || !x->gl_editor->e_keyfn)
{
if (!autorepeat)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment