# HG changeset patch # User wycc # Date 1287432405 -28800 # Node ID 7c4df3c1027f8fe50aa5428df272b91d6a328bac # Parent 410478ded5d2397cc03fb6ead349e737fc32a025 Fix the indentation diff -r 410478ded5d2 -r 7c4df3c1027f nodejs/mbapp.js --- a/nodejs/mbapp.js Tue Oct 19 04:04:52 2010 +0800 +++ b/nodejs/mbapp.js Tue Oct 19 04:06:45 2010 +0800 @@ -107,7 +107,9 @@ app.prototype.KeyPress = function(evt) { if (this.onKeyPress) this.onKeyPress(evt.sym); - if (evt.sym in this.keymap) this.keymap[evt.sym](); + if (evt.sym in this.keymap) { + this.keymap[evt.sym](); + } } app.prototype.loop=function() { @@ -135,11 +137,11 @@ app.prototype.addKeyListener=function(key,f) { if (typeof(key) == 'number') this.keymap[key] = f; - else { - for(k in key) { - this.keymap[k] = f; - } + else { + for(k in key) { + this.keymap[k] = f; } + } } var app_with_win = function(display, win) {