mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-11 01:33:24 +01:00
fix esc key not working if not focus in modal
This commit is contained in:
parent
0f8b7ca662
commit
71b9357a9f
@ -13,7 +13,7 @@ var BootstrapDialog = new Class({
|
|||||||
initialize: function (title, options) {
|
initialize: function (title, options) {
|
||||||
this.setOptions(options);
|
this.setOptions(options);
|
||||||
this.options.onRemoveClickData.dialog = this;
|
this.options.onRemoveClickData.dialog = this;
|
||||||
this._native = $('<div class="modal fade"></div>').append('<div class="modal-dialog"></div>');
|
this._native = $('<div class="modal fade" tabindex="-1"></div>').append('<div class="modal-dialog"></div>');
|
||||||
var content = $('<div class="modal-content"></div>');
|
var content = $('<div class="modal-content"></div>');
|
||||||
content.on('keydown', function(event) {
|
content.on('keydown', function(event) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
Loading…
Reference in New Issue
Block a user