Skip to content
This repository was archived by the owner on Jul 15, 2022. It is now read-only.

Commit 37b6524

Browse files
author
Leonardo Chaia
committed
feat: added ctrl+shift+t shortcut for new container
1 parent ab4c620 commit 37b6524

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: src/app/navigation/tabs-container/tabs-container.component.ts

+5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { ITimoneerTab, TAB_DATA } from '../tab.model';
1010
import { TabService } from '../tab.service';
1111
import { HotkeysService, Hotkey } from 'angular2-hotkeys';
1212
import { MatTabChangeEvent } from '@angular/material';
13+
import { TimoneerTabs } from '../../timoneer-tabs';
1314

1415
@Component({
1516
selector: 'tim-tabs-container',
@@ -121,6 +122,10 @@ export class TabsContainerComponent implements OnInit, AfterViewInit {
121122
this.tabService.changeCurrentTab(next);
122123
return false;
123124
}));
125+
this.hotKey.add(new Hotkey(['command+shift+t', 'ctrl+shift+t'], (event: KeyboardEvent): boolean => {
126+
this.tabService.add(TimoneerTabs.DOCKER_CONTAINER_NEW);
127+
return false;
128+
}));
124129
}
125130

126131
private executeCurrentTabComponentFunction(fn: string) {

0 commit comments

Comments
 (0)