1
0
Fork 0

close dialog on Esc, like every other dialog with a close button

This commit is contained in:
mfranz 2008-06-11 18:39:03 +00:00
parent c1581e2ea1
commit 761444b917

View file

@ -240,7 +240,7 @@ var dialog = {
titlebar.addChild("empty").set("stretch", 1);
var w = titlebar.addChild("button");
w.node.setValues({"pref-width": 16, "pref-height": 16, legend: "", default: 0}); # key: "esc" is no good
w.node.setValues({"pref-width": 16, "pref-height": 16, legend: "", default: 0, key: "Esc"});
w.setBinding("nasal", "multiplayer.dialog.del()");
me.dialog.addChild("hrule");