allow modifier-only hotkeys

This commit is contained in:
Eugene Pankov
2021-07-31 17:18:03 +02:00
parent 8b8bacdf69
commit 1fc57018e3
5 changed files with 154 additions and 68 deletions

View File

@@ -50,7 +50,7 @@ export class HotkeyInputModalComponent extends BaseComponent {
this.hotkeys.clearCurrentKeystrokes()
this.subscribeUntilDestroyed(hotkeys.key, (event) => {
this.lastKeyEvent = performance.now()
this.value = this.hotkeys.getCurrentKeystrokes()
this.value = this.hotkeys.getCurrentKeySequence().map(x => x.value)
event.preventDefault()
event.stopPropagation()
})