Fix for Evennia issue #2611

This commit is contained in:
Vexia 2022-09-24 18:45:43 -05:00 committed by GitHub
parent 8486905a66
commit 7a34be7657

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