From 4816ec1ca011d98c5e67106780355a30e319e0a5 Mon Sep 17 00:00:00 2001 From: Christian Boulanger Date: Tue, 20 Oct 2020 14:34:29 +0200 Subject: [PATCH] Bug fix --- source/class/qxl/dialog/Dialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/class/qxl/dialog/Dialog.js b/source/class/qxl/dialog/Dialog.js index 70396116a..9c3b3f7e4 100644 --- a/source/class/qxl/dialog/Dialog.js +++ b/source/class/qxl/dialog/Dialog.js @@ -579,7 +579,7 @@ qx.Class.define("qxl.dialog.Dialog", { * @param e {qx.event.type.KeyInput} */ _handleEscape: function(e) { - if (this.isSeeable() && this.isCancelOnEscape() && e.getKeyCode() === 27) { + if (this.isCancelOnEscape() && e.getKeyCode() === 27 && this.getContentElement() && this.isSeeable()) { this._handleCancel(); } }