Last active
January 12, 2025 20:26
-
-
Save ova2/eaa7e41dad9eed7f3922f180cdd34894 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// register Shift key as shortcut | |
this._shortcutManager.shortcut$(ShortcutKey.Shift) | |
.pipe(takeUntil(this._destroy$$)) | |
.subscribe(keyboardEvents => this.updateRoute(keyboardEvents)); | |
// register W key as shortcut | |
this._subscription = this._shortcutManager.shortcut$(ShortcutKey.W) | |
.pipe( | |
// we're only interested in "keydown" | |
filter(keyboardEvents => keyboardEvents != null) | |
).subscribe(_ => this._tooltipService.hide()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment