mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 04:57:27 +00:00
Fix Textfield
This commit is contained in:
1 parent
a94219cd0d
commit
bb7791c691
1 file changed
+1
-1
@@ -69,7 +69,7 @@ public class GuiNpcTextField extends GuiTextField {
|
||||
|
||||
@Override
|
||||
public boolean textboxKeyTyped(char c, int i) {
|
||||
if (!canEdit)
|
||||
if (!canEdit || !isFocused())
|
||||
return false;
|
||||
// Allow Ctrl shortcuts (select all, copy, paste, cut) to bypass char filter
|
||||
if (GuiScreen.isCtrlKeyDown()) {
|
||||
|
||||
Reference in new issue
Block a user