mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
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:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user