mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-17 01:50:05 +00:00
20 lines
521 B
TypeScript
20 lines
521 B
TypeScript
import { Injectable } from '@angular/core'
|
|
import { HotkeyDescription, HotkeyProvider, TranslateService } from 'tabby-core'
|
|
|
|
/** @hidden */
|
|
@Injectable()
|
|
export class LocalTerminalHotkeyProvider extends HotkeyProvider {
|
|
hotkeys: HotkeyDescription[] = [
|
|
{
|
|
id: 'new-tab',
|
|
name: this.translate.instant('New tab'),
|
|
},
|
|
]
|
|
|
|
constructor (private translate: TranslateService) { super() }
|
|
|
|
async provide (): Promise<HotkeyDescription[]> {
|
|
return this.hotkeys
|
|
}
|
|
}
|