8194135: The content in textArea can not be pasted after clicking "Copy" button.
authorsveerabhadra
Tue, 23 Jan 2018 13:46:34 +0530
changeset 48702 81eb51edf2cb
parent 48701 48ce4b11bc17
child 48703 3eae36c6baa5
8194135: The content in textArea can not be pasted after clicking "Copy" button. Reviewed-by: serb, ssadetsky
src/java.desktop/unix/classes/sun/awt/X11/XTextAreaPeer.java
--- a/src/java.desktop/unix/classes/sun/awt/X11/XTextAreaPeer.java	Fri Jan 19 16:57:56 2018 +0000
+++ b/src/java.desktop/unix/classes/sun/awt/X11/XTextAreaPeer.java	Tue Jan 23 13:46:34 2018 +0530
@@ -630,19 +630,6 @@
             super.focusLost(e);
             getComponent().repaint();
         }
-
-        // Fix for 5100950: textarea.getSelectedText() returns the de-selected text, on XToolkit
-        // Restoring Motif behaviour
-        // If the text is unhighlighted then we should sets the selection range to zero
-        @Override
-        public void setSelectionVisible(boolean vis) {
-            if (vis){
-                super.setSelectionVisible(vis);
-            }else{
-                // In order to de-select the selection
-                setDot(getDot());
-            }
-        }
     }
 
     @SuppressWarnings("serial") // JDK-implementation class