mirror of
https://github.com/Eugeny/tabby
synced 2024-11-15 01:17:14 +00:00
a bit more reliable hotkey handling
This commit is contained in:
parent
8d3f4137a1
commit
397a93bd6f
1 changed files with 3 additions and 0 deletions
|
@ -145,6 +145,8 @@ export class HotkeysService {
|
||||||
})
|
})
|
||||||
this.recognitionPhase = false
|
this.recognitionPhase = false
|
||||||
}
|
}
|
||||||
|
this.pressedKeys.clear()
|
||||||
|
this.pressedKeyTimestamps.clear()
|
||||||
this.removePressedKey(keyName)
|
this.removePressedKey(keyName)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -296,6 +298,7 @@ export class HotkeysService {
|
||||||
this._hotkey.next(hotkey)
|
this._hotkey.next(hotkey)
|
||||||
this.pressedHotkey = hotkey
|
this.pressedHotkey = hotkey
|
||||||
}
|
}
|
||||||
|
this.recognitionPhase = false
|
||||||
}
|
}
|
||||||
|
|
||||||
private emitHotkeyOff (hotkey: string) {
|
private emitHotkeyOff (hotkey: string) {
|
||||||
|
|
Loading…
Reference in a new issue