Merge pull request #2887 from VexiaOnline/webclient-copy-fix

Webclient copy fix
This commit is contained in:
Griatch 2022-10-03 19:23:19 +02:00 committed by GitHub
commit 2855a08eba

View file

@ -17,6 +17,14 @@ let defaultInPlugin = (function () {
inputfield = $("#inputfield:focus");
}
// Allows you to copy from panels.
// Ignore textfocus if Ctrl + C (Or Mac Command Key + C Pressed.)
if ((event.ctrlKey || event.metaKey) && event.keyCode == 67) {
return;
} else {
// Continue
}
// check for important keys
switch (event.which) {
case 9: // ignore tab key -- allows normal focus control