From 3655df6cb83838db229717811ffac87bbfab8c0e Mon Sep 17 00:00:00 2001 From: Ezequiel Bergamaschi Date: Sun, 6 Jul 2014 01:06:23 -0300 Subject: [PATCH] adding stop propagation for keydown event in bootstrap dialog --- .../src/main/javascript/libraries/bootstrap/BootstrapDialog.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mindplot/src/main/javascript/libraries/bootstrap/BootstrapDialog.js b/mindplot/src/main/javascript/libraries/bootstrap/BootstrapDialog.js index 0bd72b6f..03052972 100644 --- a/mindplot/src/main/javascript/libraries/bootstrap/BootstrapDialog.js +++ b/mindplot/src/main/javascript/libraries/bootstrap/BootstrapDialog.js @@ -15,6 +15,9 @@ var BootstrapDialog = new Class({ this.options.onRemoveClickData.dialog = this; this._native = $('').append(''); var content = $(''); + content.on('keydown', function(event) { + event.stopPropagation(); + }); var header = this._buildHeader(title); if (header) { content.append(header);