mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-07 21:10:00 +00:00
24 lines
668 B
TypeScript
24 lines
668 B
TypeScript
import { Injectable } from '@angular/core'
|
|
import { HotkeyDescription, HotkeyProvider, TranslateService } from 'tabby-core'
|
|
|
|
/** @hidden */
|
|
@Injectable()
|
|
export class SerialHotkeyProvider extends HotkeyProvider {
|
|
hotkeys: HotkeyDescription[] = [
|
|
{
|
|
id: 'serial',
|
|
name: this.translate.instant('Show Serial connections'),
|
|
},
|
|
{
|
|
id: 'restart-serial-session',
|
|
name: this.translate.instant('Restart current serial session'),
|
|
},
|
|
]
|
|
|
|
constructor (private translate: TranslateService) { super() }
|
|
|
|
async provide (): Promise<HotkeyDescription[]> {
|
|
return this.hotkeys
|
|
}
|
|
}
|