mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-18 06:48:09 +00:00
Update web-console-full-window.component.ts
This commit is contained in:
@ -61,6 +61,15 @@ export class WebConsoleFullWindowComponent implements OnInit, AfterViewInit {
|
|||||||
this.fitAddon.fit();
|
this.fitAddon.fit();
|
||||||
this.term.focus();
|
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 numberOfColumns = Math.round(window.innerWidth / this.consoleService.getLineWidth());
|
||||||
let numberOfRows = Math.round(window.innerHeight / this.consoleService.getLineHeight());
|
let numberOfRows = Math.round(window.innerHeight / this.consoleService.getLineHeight());
|
||||||
this.term.resize(numberOfColumns, numberOfRows);
|
this.term.resize(numberOfColumns, numberOfRows);
|
||||||
|
Reference in New Issue
Block a user