diff --git a/terminus-core/src/services/hotkeys.util.ts b/terminus-core/src/services/hotkeys.util.ts index 2b10884a..e613ad86 100644 --- a/terminus-core/src/services/hotkeys.util.ts +++ b/terminus-core/src/services/hotkeys.util.ts @@ -45,7 +45,9 @@ export function stringifyKeySequence (events: NativeKeyEvent[]): string[] { // TODO make this optional? continue } - if (event.key.length === 1) { + if (event.key === ' ') { + itemKeys.push('Space') + } else if (event.key.length === 1) { itemKeys.push(event.key.toUpperCase()) } else { itemKeys.push(event.key) diff --git a/terminus-settings/src/components/hotkeyInputModal.component.ts b/terminus-settings/src/components/hotkeyInputModal.component.ts index e285581a..d41e76a0 100644 --- a/terminus-settings/src/components/hotkeyInputModal.component.ts +++ b/terminus-settings/src/components/hotkeyInputModal.component.ts @@ -73,6 +73,7 @@ export class HotkeyInputModalComponent { } ngOnDestroy () { + this.hotkeys.clearCurrentKeystrokes() this.hotkeys.enable() clearInterval(this.keyTimeoutInterval) }