[FIX] pressing [ESC] while in an editable listview in a dialog should not close the dialog

bzr revid: xmo@openerp.com-20120123143614-c2cw93asd6n5qfqs
This commit is contained in:
Xavier Morel
2012-01-23 15:36:14 +01:00
parent 4aea2b3f8c
commit ac8532f801
@@ -212,7 +212,8 @@ openerp.web.list_editable = function (openerp) {
e.stopImmediatePropagation();
})
.keyup(function () {
return self.on_row_keyup.apply(self, arguments); });
return self.on_row_keyup.apply(self, arguments); })
.keydown(function (e) { e.stopPropagation(); });
if (row) {
$new_row.replaceAll(row);
} else if (self.options.editable) {