Bläddra i källkod

Fixes issue 3776: Quick copy doesn't work for double/triple clicks

Change-Id: Id16f25b753c4c6568348c22e72017235dd1d442f
Reviewed-on: http://gerrit.dmdirc.com/881
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com>
Reviewed-by: Chris Smith <chris@dmdirc.com>
tags/0.6.3
Gregory Holmes 14 år sedan
förälder
incheckning
32bf4a6554
1 ändrade filer med 5 tillägg och 0 borttagningar
  1. 5
    0
      src/com/dmdirc/addons/ui_swing/textpane/TextPaneCanvas.java

+ 5
- 0
src/com/dmdirc/addons/ui_swing/textpane/TextPaneCanvas.java Visa fil

@@ -1,3 +1,4 @@
1
+
1 2
 /*
2 3
  * Copyright (c) 2006-2010 Chris Smith, Shane Mc Cormack, Gregory Holmes
3 4
  *
@@ -461,11 +462,15 @@ class TextPaneCanvas extends JPanel implements MouseInputListener,
461 462
                 selection.setEndLine(lineInfo.getLine());
462 463
                 selection.setStartPos(start);
463 464
                 selection.setEndPos(end);
465
+                textPane.copy();
466
+                textPane.clearSelection();
464 467
             } else if (e.getClickCount() == 3) {
465 468
                 selection.setStartLine(lineInfo.getLine());
466 469
                 selection.setEndLine(lineInfo.getLine());
467 470
                 selection.setStartPos(0);
468 471
                 selection.setEndPos(clickedText.length());
472
+                textPane.copy();
473
+                textPane.clearSelection();
469 474
             }
470 475
         }
471 476
 

Laddar…
Avbryt
Spara