mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Merge pull request #2887 from VexiaOnline/webclient-copy-fix
Webclient copy fix
This commit is contained in:
commit
2855a08eba
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue