I'd like to have the typed text relayed to a session when the Enter key is pressed.
The wiki says to define a string variable 'Key' with the name of the key needed, so I have that variable set to 'Enter', as listed in the bind -keylist output. It resides in an ISS file that does nothing more than load the UI and set the variable, then wait for queued commands.
Whenever I type in the textentry, any key being released relays the text instead of waiting for enter.
Here's the XML:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<ISUI>
<Window name='Chat'>
<Title>Chat</Title>
<X>300</X>
<Y>300</Y>
<Width>300</Width>
<Height>35</Height>
<Children>
<Textentry Name='Msg'>
<X>3</X>
<Y>3</Y>
<Width>100%</Width>
<Height>90%</Height>
<Color>FFDDBB00</Color>
<MaxLength>100</MaxLength>
<OnKeyUp>
relay is2 EQ2Execute ${This.Text}
This:SetText[""]
</OnKeyUp>
</Textentry>
</Children>
</Window>
</ISUI>