shortcut capture
This commit is contained in:
@@ -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});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user