From 7707ddad32524db88443afba01f0d886195d7538 Mon Sep 17 00:00:00 2001
From: mfranz <mfranz>
Date: Wed, 9 Jul 2008 12:26:18 +0000
Subject: [PATCH] - replace depreciated fgcommand "old-reinit-dialog" by
 "reset" - keyboard.xml: cosmetics

---
 gui/menubar.xml | 2 +-
 keyboard.xml    | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/gui/menubar.xml b/gui/menubar.xml
index 6be94f363..e17456fa9 100644
--- a/gui/menubar.xml
+++ b/gui/menubar.xml
@@ -22,7 +22,7 @@
   <item>
    <label>Reset</label>
    <binding>
-    <command>old-reinit-dialog</command>
+    <command>reset</command>
    </binding>
   </item>
 
diff --git a/keyboard.xml b/keyboard.xml
index c8f6a2095..77761ac30 100644
--- a/keyboard.xml
+++ b/keyboard.xml
@@ -18,11 +18,11 @@ top down before the key bindings are parsed.
       var ctrl = props.globals.getNode("/devices/status/keyboard/ctrl");
       var alt = props.globals.getNode("/devices/status/keyboard/alt");
 
-      var space_release = func {}
+      var space_release = func nil;
       var space = func(state, mod) {
           if (!state) {
               space_release();
-              return space_release = func {};
+              return space_release = func nil;
           }
           if (mod == 0 or mod == 1) {
               controls.ptt(mod + 1);
@@ -30,7 +30,7 @@ top down before the key bindings are parsed.
           }
       }
 
-      ## uncomment this line to get keycode reports to the terminal window
+      ## uncomment this line to get keycode reports printed to the terminal window
       #setlistener("devices/status/keyboard/event", func(n) debug.dump(n.getValues()));
   </script>
  </nasal>
@@ -259,7 +259,7 @@ top down before the key bindings are parsed.
   <mod-shift>
    <desc>Reset FlightGear.</desc>
    <binding>
-    <command>old-reinit-dialog</command>
+    <command>reset</command>
    </binding>
   </mod-shift>
  </key>