Fixes issue #723 (keep focus on write area when trying to send an empty message). Bug report and fix provided by Edgar Poce. Thanks Edgar!

cusax-fix
Yana Stamcheva 17 years ago
parent 1fdd5ed22e
commit 44aaabd1ef

@ -1207,9 +1207,6 @@ protected void sendInstantMessage()
}
this.refreshWriteArea();
//make sure the focus goes back to the write area
this.requestFocusInWriteArea();
}
/**

@ -66,7 +66,7 @@ public ChatSendPanel(ChatPanel chatPanel)
* @param evt The <tt>ActionEvent</tt> object.
*/
public void actionPerformed(ActionEvent evt)
{
{
if (!chatPanel.isWriteAreaEmpty())
{
new Thread()
@ -77,6 +77,9 @@ public void run()
}
}.start();
}
//make sure the focus goes back to the write area
chatPanel.requestFocusInWriteArea();
}
/**

Loading…
Cancel
Save