diff --git a/Nasal/gui.nas b/Nasal/gui.nas index b0e0831a1..4fbfd6e56 100644 --- a/Nasal/gui.nas +++ b/Nasal/gui.nas @@ -787,7 +787,8 @@ var weightChangeHandler = func { # var showWeightDialog = func { var name = "WeightAndFuel"; - var title = "Weight and Fuel Settings"; +# menu entry is "Fuel and Payload" + var title = "Fuel and Payload Settings"; # # General Dialog Structure @@ -806,6 +807,8 @@ var showWeightDialog = func { w.set("pref-height", 16); w.set("legend", ""); w.set("default", 0); + # "Esc" causes dialog-close + w.set("key", "Esc"); w.setBinding("dialog-close"); dialog[name].addChild("hrule"); diff --git a/Nasal/multiplayer.nas b/Nasal/multiplayer.nas index 4be079a17..7bf9dd292 100644 --- a/Nasal/multiplayer.nas +++ b/Nasal/multiplayer.nas @@ -216,6 +216,8 @@ var dialog = { var w = titlebar.addChild("button"); w.node.setValues({ "pref-width": 16, "pref-height": 16, legend: "", default: 0 }); + # "Esc" causes dialog-close + w.set("key", "Esc"); w.setBinding("nasal", "multiplayer.dialog.del()"); me.dialog.addChild("hrule"); diff --git a/Nasal/performance_monitor/monitor.nas b/Nasal/performance_monitor/monitor.nas index cedb6376a..e24b38027 100644 --- a/Nasal/performance_monitor/monitor.nas +++ b/Nasal/performance_monitor/monitor.nas @@ -69,6 +69,8 @@ var dialog = { var w = titlebar.addChild("button"); w.node.setValues({ "pref-width": 16, "pref-height": 16, legend: "", default: 0 }); + # "Esc" causes dialog-close + w.set("key", "Esc"); w.setBinding("nasal", "performance_monitor.dialog.del()"); me.dialog.addChild("hrule"); diff --git a/gui/dialogs/chat_full.xml b/gui/dialogs/chat_full.xml index b07c359e9..5f074dfa9 100644 --- a/gui/dialogs/chat_full.xml +++ b/gui/dialogs/chat_full.xml @@ -35,6 +35,7 @@