tabby/tabby-electron/src/hotkeys.ts
2021-06-29 23:57:04 +02:00

22 lines
511 B
TypeScript

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