mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-20 19:39:54 +00:00
22 lines
535 B
TypeScript
22 lines
535 B
TypeScript
import { Injectable } from '@angular/core'
|
|
import { HotkeyDescription, HotkeyProvider } from 'tabby-core'
|
|
|
|
/** @hidden */
|
|
@Injectable()
|
|
export class SerialHotkeyProvider extends HotkeyProvider {
|
|
hotkeys: HotkeyDescription[] = [
|
|
{
|
|
id: 'serial',
|
|
name: 'Show Serial connections',
|
|
},
|
|
{
|
|
id: 'restart-serial-session',
|
|
name: 'Restart current serial session',
|
|
},
|
|
]
|
|
|
|
async provide (): Promise<HotkeyDescription[]> {
|
|
return this.hotkeys
|
|
}
|
|
}
|