@churchillliving/se-ui-toolkit 6.53.481 → 6.53.482

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8642,14 +8642,12 @@
8642
8642
  */
8643
8643
  SidebarComponent.prototype.openDialog = function (menu, item) {
8644
8644
  var _this = this;
8645
- var ctrl;
8646
- document.body.onclick = function (e) {
8647
- if (e.ctrlKey) {
8648
- ctrl = e.ctrlKey;
8649
- }
8650
- };
8645
+ var ctrl = '';
8646
+ this.globalListenFunc = this.instance.listen('document', 'keydown', function (e) {
8647
+ ctrl = e.key;
8648
+ });
8651
8649
  setTimeout(function () {
8652
- if (ctrl) {
8650
+ if (ctrl === 'Control') {
8653
8651
  //open component on new tab
8654
8652
  _this.openComponentInTab(menu);
8655
8653
  }