From 4a216666e7f353e638c6927a9ff0c8fce4e94014 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Wed, 26 Sep 2018 14:23:10 +0200 Subject: add shortcuts icon in menu --- client/src/app/core/hotkeys/hotkeys.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'client/src/app/core') 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 } } -- cgit v1.2.3