close dialog on Esc, like every other dialog with a close button
This commit is contained in:
parent
c1581e2ea1
commit
761444b917
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue