mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
Memory work.
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@9255 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
@ -89,7 +89,6 @@ public class TranscriptWindow extends ChatArea implements ContextMenuListener {
|
|||||||
addMouseListener(this);
|
addMouseListener(this);
|
||||||
addMouseMotionListener(this);
|
addMouseMotionListener(this);
|
||||||
setDragEnabled(true);
|
setDragEnabled(true);
|
||||||
|
|
||||||
addContextMenuListener(this);
|
addContextMenuListener(this);
|
||||||
|
|
||||||
// Make sure ctrl-c works
|
// Make sure ctrl-c works
|
||||||
@ -97,8 +96,8 @@ public class TranscriptWindow extends ChatArea implements ContextMenuListener {
|
|||||||
|
|
||||||
getActionMap().put("copy", new AbstractAction("copy") {
|
getActionMap().put("copy", new AbstractAction("copy") {
|
||||||
public void actionPerformed(ActionEvent evt) {
|
public void actionPerformed(ActionEvent evt) {
|
||||||
StringSelection ss = new StringSelection(getSelectedText());
|
StringSelection stringSelection = new StringSelection(getSelectedText());
|
||||||
Toolkit.getDefaultToolkit().getSystemClipboard().setContents(ss, null);
|
Toolkit.getDefaultToolkit().getSystemClipboard().setContents(stringSelection, null);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user