This commit is contained in:
kirillsaint 2023-08-27 18:56:11 +06:00
parent 43672c6ce9
commit 738fcf83e2

View File

@ -139,10 +139,13 @@ public class Input {
}
return;
}
String test = "";
if (GuiScreen.isKeyComboCtrlV(keyCode))
{
setValue(GuiScreen.getClipboardString());
test += GuiScreen.getClipboardString();
if(this.pattern.matcher(test).matches()) {
value += ChatAllowedCharacters.filterAllowedCharacters(test);
}
return;
}
@ -150,8 +153,6 @@ public class Input {
NotificationUtils.showNotification("Error", "Maximum " + name + " size " + maxLength + " characters");
return;
}
String test = "";
test += typedChar;
if(this.pattern.matcher(test).matches()) {