mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-20 02:18:01 +00:00
more hotkey fixes
This commit is contained in:
@@ -48,12 +48,14 @@ export class HotkeyInputModalComponent extends BaseComponent {
|
||||
) {
|
||||
super()
|
||||
this.hotkeys.clearCurrentKeystrokes()
|
||||
this.subscribeUntilDestroyed(hotkeys.keystroke$, (keystroke) => {
|
||||
this.lastKeyEvent = performance.now()
|
||||
this.value.push(keystroke)
|
||||
this.subscribeUntilDestroyed(hotkeys.keyEvent$, event => {
|
||||
event.preventDefault()
|
||||
event.stopPropagation()
|
||||
})
|
||||
this.subscribeUntilDestroyed(hotkeys.keystroke$, keystroke => {
|
||||
this.lastKeyEvent = performance.now()
|
||||
this.value.push(keystroke)
|
||||
})
|
||||
}
|
||||
|
||||
splitKeys (keys: string): string[] {
|
||||
|
Reference in New Issue
Block a user