Unable use search Box
MrRoxandi opened this issue · 8 comments
Description
I have a problem where I am unable to use the search box if I install any other mods that modify the chat in any way.
How to reproduce
Add a mod that modifies the chat in any way. For example: Symbol Chat
Log file link
Additional info
chatlog.json
{"messages":[],"history":[]}
chatpatches.json
{
"time": true,
"timeDate": "HH:mm:ss",
"timeFormat": "[$]",
"timeColor": 16733695,
"hover": true,
"hoverDate": "MM/dd/yyyy",
"hoverFormat": "$",
"hoverColor": 16777215,
"counter": true,
"counterFormat": "\u00268(\u00267x\u0026r$\u00268)",
"counterColor": 16777045,
"counterCompact": false,
"counterCompactDistance": 0,
"boundary": true,
"boundaryFormat": "\u00268[\u0026r$\u00268]",
"boundaryColor": 5636095,
"chatLog": true,
"chatHidePacket": true,
"chatWidth": 0,
"chatMaxMessages": 16384,
"chatNameFormat": "\u003c$\u003e",
"shiftChat": 10,
"messageDrafting": false,
"searchDrafting": true,
"hideSearchButton": false,
"vanillaClearing": false,
"copyColor": 5636095,
"copyReplyFormat": "/msg $ "
}
Mod List
I don't know how to get there using TAB, so I can't tell you. I haven't used one of these. I just can't click on that field. The chat field works correctly. The search settings button works as it should too.
like you can't click or tab to it at all? what about the chat field and the search button, can you interact with those?
I cannot reproduce this with the same mod set in fabric, can you run the same mod set and see if it is resolved?
So, i run it on a fabric with a clear new pack. This issue still there
mod list
video
https://github.com/mrbuilder1961/ChatPatches/assets/120740818/d1a7d5a0-5345-4c15-9d94-f033748dca6c
ok, so the issue is (obviously) that the search field is not registering any clicks. i'm trying to look into the source code of Symbol Chat to see where it registers clicks, but I'm having a hard time with it. @replaceitem, could you let me know where your mouseClicked
handlers are located so i can move my calls to avoid conflicts? thanks in advance, and sorry about the wait!
I looked into it, and it looks like this is the fault of symbol chat, since it's preventing any other widget apart from the chat box to be focused
I will change that to only block focusing the symbol panel away from the chatbox.
Fixed it in replaceitem/symbol-chat@46c7500 and tested it with this mod.