mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-19 10:59:54 +00:00
properly display Space in hotkeys (fixes #76)
This commit is contained in:
parent
dc9b2553ae
commit
8ee93297be
@ -45,7 +45,9 @@ export function stringifyKeySequence (events: NativeKeyEvent[]): string[] {
|
|||||||
// TODO make this optional?
|
// TODO make this optional?
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if (event.key.length === 1) {
|
if (event.key === ' ') {
|
||||||
|
itemKeys.push('Space')
|
||||||
|
} else if (event.key.length === 1) {
|
||||||
itemKeys.push(event.key.toUpperCase())
|
itemKeys.push(event.key.toUpperCase())
|
||||||
} else {
|
} else {
|
||||||
itemKeys.push(event.key)
|
itemKeys.push(event.key)
|
||||||
|
@ -73,6 +73,7 @@ export class HotkeyInputModalComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnDestroy () {
|
ngOnDestroy () {
|
||||||
|
this.hotkeys.clearCurrentKeystrokes()
|
||||||
this.hotkeys.enable()
|
this.hotkeys.enable()
|
||||||
clearInterval(this.keyTimeoutInterval)
|
clearInterval(this.keyTimeoutInterval)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user