]> git.mxchange.org Git - simgear.git/blobdiff - simgear/canvas/CanvasWindow.cxx
Fix VS2010 lack of fminf
[simgear.git] / simgear / canvas / CanvasWindow.cxx
index ac3e16a2bdfd975b5304cff8b8905f7cfec668ed..29ef354aaae482992424289c4a26282fea84599e 100644 (file)
@@ -280,6 +280,9 @@ namespace canvas
                                          ->createChild<Image>("content");
       _image_content->setSrcCanvas(content);
 
+      // Forward keyboard events to content
+      _image_content->setFocus();
+
       // Draw content on top of decoration
       _image_content->set<int>("z-index", 1);
     }