shortcut capture

This commit is contained in:
Yuri Kuznetsov
2025-06-21 15:41:46 +03:00
parent 5e0736e60f
commit 5ce71b0bcd
2 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ export class ShortcutManager {
constructor() {
this.items = [];
document.addEventListener('keydown', event => this.handle(event));
document.addEventListener('keydown', event => this.handle(event), {capture: true});
}
/**
+12
View File
@@ -31,6 +31,8 @@
import View from 'view';
import $ from 'jquery';
import CollapsedModalBarView from 'views/collapsed-modal-bar';
import {inject} from 'di';
import {ShortcutManager} from 'helpers/site/shortcut-manager';
class MasterSiteView extends View {
@@ -67,6 +69,16 @@ class MasterSiteView extends View {
*/
collapsedModalBarView
/**
* Injected to be loaded early.
*
* @private
* @type {ShortcutManager}
*/
@inject(ShortcutManager)
shortcutManager
showLoadingNotification() {
Espo.Ui.notifyWait();
}