a bit more reliable hotkey handling

This commit is contained in:
Eugene Pankov 2021-09-17 22:09:35 +02:00
parent 8d3f4137a1
commit 397a93bd6f
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4

View file

@ -145,6 +145,8 @@ export class HotkeysService {
})
this.recognitionPhase = false
}
this.pressedKeys.clear()
this.pressedKeyTimestamps.clear()
this.removePressedKey(keyName)
}
@ -296,6 +298,7 @@ export class HotkeysService {
this._hotkey.next(hotkey)
this.pressedHotkey = hotkey
}
this.recognitionPhase = false
}
private emitHotkeyOff (hotkey: string) {