]> git.mxchange.org Git - flightgear.git/commitdiff
Canvas: expose set/clearFocusElement to Nasal.
authorThomas Geymayer <tomgey@gmail.com>
Mon, 25 Aug 2014 19:52:30 +0000 (21:52 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Mon, 25 Aug 2014 19:54:20 +0000 (21:54 +0200)
src/Scripting/NasalCanvas.cxx

index ad569817b3a756907b201c5c74859801895fa552..4fa7652652561e4714607fc18e3ea90482922ee4 100644 (file)
@@ -476,7 +476,9 @@ naRef initNasalCanvas(naRef globals, naContext c)
                                                const sc::EventListener& )>
              (&sc::Canvas::addEventListener) )
     .method("dispatchEvent", &sc::Canvas::dispatchEvent)
-    .method("setLayout", &sc::Canvas::setLayout);
+    .method("setLayout", &sc::Canvas::setLayout)
+    .method("setFocusElement", &sc::Canvas::setFocusElement)
+    .method("clearFocusElement", &sc::Canvas::clearFocusElement);
 
   canvas_module.set("_newCanvasGhost", f_createCanvas);
   canvas_module.set("_getCanvasGhost", f_getCanvas);