From 2d3e5711f1229c4be52e3f8553feb734fc3d1a44 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Tue, 26 Sep 2017 13:55:13 +0200 Subject: [FIX] web: escape pressed in editable list in dialog should discard the edited row, but not close the dialog. Before this rev., it was closing the dialog. --- addons/web/static/src/js/fields/abstract_field.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web/static/src/js/fields') diff --git a/addons/web/static/src/js/fields/abstract_field.js b/addons/web/static/src/js/fields/abstract_field.js index 9b484354544..25aa9fceda9 100644 --- a/addons/web/static/src/js/fields/abstract_field.js +++ b/addons/web/static/src/js/fields/abstract_field.js @@ -444,7 +444,7 @@ var AbstractField = Widget.extend({ this.trigger_up('navigation_move', {direction: 'next_line'}); break; case $.ui.keyCode.ESCAPE: - this.trigger_up('navigation_move', {direction: 'cancel'}); + this.trigger_up('navigation_move', {direction: 'cancel', originalEvent: ev}); break; case $.ui.keyCode.UP: ev.stopPropagation(); -- cgit v1.2.3