Removing blocking context menu, copy-paste in console changed from ctrl-c, ctrl-v, to ctrl-shift-c, ctrl-shift-v

This commit is contained in:
piotrpekala7 2021-05-07 15:46:06 +02:00
parent 4261086495
commit 62c1f8b003
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ export class WebConsoleComponent implements OnInit, AfterViewInit {
this.term.attachCustomKeyEventHandler((key: KeyboardEvent) => {
if (key.code === 'KeyC' || key.code === 'KeyV') {
if (key.ctrlKey) {
if (key.ctrlKey && key.shiftKey) {
return false;
}
}

View File

@ -35,7 +35,7 @@
</script>
</head>
<!-- <body class="mat-app-background" oncontextmenu="return false;"> -->
<body class="mat-app-background" oncontextmenu="return false;">
<body class="mat-app-background">
<app-root></app-root>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-5D6FZL9923"></script>