1) Added ctrl+n to chat window and contact list.

2) Fixed focus bug.

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@5528 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Derek DeMoro
2006-09-27 17:04:45 +00:00
committed by derek
parent 8fc8ba576b
commit 37d2c9c191
5 changed files with 192 additions and 162 deletions

View File

@ -10,8 +10,8 @@
package org.jivesoftware.spark.ui;
import org.jivesoftware.resource.SparkRes;
import org.jivesoftware.resource.Res;
import org.jivesoftware.resource.SparkRes;
import org.jivesoftware.smack.PacketListener;
import org.jivesoftware.smack.packet.Message;
import org.jivesoftware.smack.packet.Packet;
@ -116,6 +116,12 @@ public abstract class ChatRoom extends BackgroundPanel implements ActionListener
public void mouseClicked(MouseEvent e) {
getChatInputEditor().requestFocus();
}
public void mouseReleased(MouseEvent e) {
if (transcriptWindow.getSelectedText() == null) {
getChatInputEditor().requestFocus();
}
}
});
textScroller = new JScrollPane(transcriptWindow);