diff --git a/sao/src/window.js b/sao/src/window.js index ccda7200d5..0042fcb522 100644 --- a/sao/src/window.js +++ b/sao/src/window.js @@ -886,8 +886,14 @@ this.title = title; this.exclude_field = kwargs.exclude_field || null; var dialog = new Sao.Dialog(Sao.i18n.gettext( - 'Search %1', this.title), '', 'lg'); + 'Search %1', this.title), '', 'lg', false); this.el = dialog.modal; + this.el.on('keydown', e => { + if (e.which == Sao.common.ESC_KEYCODE) { + e.preventDefault(); + this.response('RESPONSE_CANCEL'); + } + }); jQuery('