Skip to content

Commit

Permalink
fixes esc close windows
Browse files Browse the repository at this point in the history
  • Loading branch information
raffis committed Oct 2, 2018
1 parent f73d4da commit ccd4564
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 22 deletions.
54 changes: 41 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions src/lib/widget-balloon-window.js
Expand Up @@ -80,15 +80,6 @@ import kendoWindow from 'kendo-ui-core/js/kendo.window.js';
this._object(modals.last())._overlay(true);
}
},

_keydown: function(e) {
if(options.draggable && !e.ctrlKey && !e.altKey && [37,38,39,40].indexOf(e.keyCode) > -1) {
//do not move window with arrow keys (needed for scrolling)
return true;
}

Window.fn._keydown.call(this, e);
}
});

ui.plugin(BalloonWindow);
Expand Down

0 comments on commit ccd4564

Please sign in to comment.