changeset 48518:81eb51edf2cb

8194135: The content in textArea can not be pasted after clicking "Copy" button. Reviewed-by: serb, ssadetsky
author sveerabhadra
date Tue, 23 Jan 2018 13:46:34 +0530
parents 48ce4b11bc17
children 3eae36c6baa5
files src/java.desktop/unix/classes/sun/awt/X11/XTextAreaPeer.java
diffstat 1 files changed, 0 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- 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