1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-26 03:27:23 +03:00
tabby/tabby-electron/src/hotkeys.ts
2022-01-08 16:03:01 +01:00

24 lines
644 B
TypeScript

import { Injectable } from '@angular/core'
import { HotkeyDescription, HotkeyProvider, TranslateService } from 'tabby-core'
/** @hidden */
@Injectable()
export class ElectronHotkeyProvider extends HotkeyProvider {
hotkeys: HotkeyDescription[] = [
{
id: 'new-window',
name: this.translate.instant('New window'),
},
{
id: 'toggle-window',
name: this.translate.instant('Toggle terminal window'),
},
]
constructor (private translate: TranslateService) { super() }
async provide (): Promise<HotkeyDescription[]> {
return this.hotkeys
}
}