mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-04-16 14:38:52 +00:00
Update web-console-full-window.component.ts
This commit is contained in:
parent
71c1798152
commit
0e4ea77d3f
@ -61,6 +61,15 @@ export class WebConsoleFullWindowComponent implements OnInit, AfterViewInit {
|
||||
this.fitAddon.fit();
|
||||
this.term.focus();
|
||||
|
||||
this.term.attachCustomKeyEventHandler((key: KeyboardEvent) => {
|
||||
if (key.code === 'KeyC' || key.code === 'KeyV'){
|
||||
if (key.ctrlKey) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
||||
let numberOfColumns = Math.round(window.innerWidth / this.consoleService.getLineWidth());
|
||||
let numberOfRows = Math.round(window.innerHeight / this.consoleService.getLineHeight());
|
||||
this.term.resize(numberOfColumns, numberOfRows);
|
||||
|
Loading…
x
Reference in New Issue
Block a user