CORD-582, CORD-734 Registering events listeners for keyboard shortcuts
and displaying them in the side panel
Change-Id: Ifbb227b3a425be5c33d1fe211abd473209414896
diff --git a/src/index.ts b/src/index.ts
index bf2a1cc..74b0c04 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -27,6 +27,7 @@
import {IXosNavigationRoute} from './app/core/services/navigation';
import XosLogDecorator from './decorators';
import {xosExtender} from './app/extender/index';
+import {IXosKeyboardShortcutService} from './app/core/services/keyboard-shortcut';
export interface IXosState extends angular.ui.IState {
data: IXosCrudData;
@@ -81,6 +82,7 @@
$state: ng.ui.IStateService,
ModelSetup: IXosModelSetupService,
AuthService: IXosAuthService,
+ XosKeyboardShortcut: IXosKeyboardShortcutService,
toastr: ng.toastr.IToastrService,
PageTitle: IXosPageTitleService
) => {
@@ -119,5 +121,8 @@
});
}
+ // register keyboard shortcut
+ XosKeyboardShortcut.setup();
+
});