Commit 2a0472b5 authored by Michael Natterer's avatar Michael Natterer 😴

app: don't forward key events to the curves tool graph if the tool isn't active

parent 24d150f5
......@@ -276,8 +276,11 @@ gimp_curves_tool_key_press (GimpTool *tool,
GimpCurvesTool *c_tool = GIMP_CURVES_TOOL (tool);
if (c_tool->graph && gtk_widget_event (c_tool->graph, (GdkEvent *) kevent))
return TRUE;
if (tool->display && c_tool->graph)
if (gtk_widget_event (c_tool->graph, (GdkEvent *) kevent))
return TRUE;
return GIMP_TOOL_CLASS (parent_class)->key_press (tool, kevent, display);
Markdown is supported
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