X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fcore%2Fcore.module.ts;h=df2ec696d1a620f758276a4e754527e64014b2bf;hb=be0f59b4eec3c2c4dcd151e2b174be39dff1568e;hp=d4917f902b8dd85303737048a1334408e04effa8;hpb=1a00c5619f11c5faecd384b011e037a8ed5fde46;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/core/core.module.ts b/client/src/app/core/core.module.ts index d4917f902..df2ec696d 100644 --- a/client/src/app/core/core.module.ts +++ b/client/src/app/core/core.module.ts @@ -15,6 +15,8 @@ import { throwIfAlreadyLoaded } from './module-import-guard' import { LoginGuard, RedirectService, UserRightGuard } from './routing' import { ServerService } from './server' import { ThemeService } from './theme' +import { HotkeyModule } from 'angular2-hotkeys' +import { CheatSheetComponent } from '@app/core/hotkeys' @NgModule({ imports: [ @@ -27,11 +29,16 @@ import { ThemeService } from './theme' LoadingBarHttpClientModule, LoadingBarRouterModule, - LoadingBarModule.forRoot() + LoadingBarModule.forRoot(), + + HotkeyModule.forRoot({ + cheatSheetCloseEsc: true + }) ], declarations: [ - ConfirmComponent + ConfirmComponent, + CheatSheetComponent ], exports: [ @@ -39,7 +46,8 @@ import { ThemeService } from './theme' LoadingBarHttpClientModule, LoadingBarModule, - ConfirmComponent + ConfirmComponent, + CheatSheetComponent ], providers: [