From ac8532f801fed592f64e2a4692e242964f0a0e54 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 23 Jan 2012 15:36:14 +0100 Subject: [PATCH] [FIX] pressing [ESC] while in an editable listview in a dialog should not close the dialog bzr revid: xmo@openerp.com-20120123143614-c2cw93asd6n5qfqs --- addons/web/static/src/js/view_list_editable.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/web/static/src/js/view_list_editable.js b/addons/web/static/src/js/view_list_editable.js index a26626d8630..4f6a1531c7a 100644 --- a/addons/web/static/src/js/view_list_editable.js +++ b/addons/web/static/src/js/view_list_editable.js @@ -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) {