X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fcore%2Fhotkeys%2Fhotkeys.component.ts;h=512a2399a545677f5a991fd0a06665b02192bcfc;hb=1d17d86349fd2b3a9bc85145d02383ba4aea4dc0;hp=fd62289fa256ea54e342554b9caa1777eb22f890;hpb=bcb0c8958fa624ce815a1e2ba1b0acda0bf6aaa8;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/core/hotkeys/hotkeys.component.ts b/client/src/app/core/hotkeys/hotkeys.component.ts index fd62289fa..512a2399a 100644 --- a/client/src/app/core/hotkeys/hotkeys.component.ts +++ b/client/src/app/core/hotkeys/hotkeys.component.ts @@ -29,7 +29,7 @@ export class CheatSheetComponent implements OnInit, OnDestroy { if (isOpen === false) { this.helpVisible = false } else { - this.toggleCheatSheet() + this.toggleHelpVisible() } }) } @@ -41,6 +41,10 @@ export class CheatSheetComponent implements OnInit, OnDestroy { } public toggleCheatSheet (): void { + this.hotkeysService.cheatSheetToggle.next(!this.helpVisible) + } + + public toggleHelpVisible (): void { this.helpVisible = !this.helpVisible } }