You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by rw...@apache.org on 2014/06/20 20:55:40 UTC
svn commit: r1604243 - in /pivot/branches/2.0.x: ./
wtk/src/org/apache/pivot/wtk/skin/TextAreaSkin.java
Author: rwhitcomb
Date: Fri Jun 20 18:55:40 2014
New Revision: 1604243
URL: http://svn.apache.org/r1604243
Log:
PIVOT-891: Further fix to TextAreaSkin: when a delete is done, reset
the anchor point to -1, because there is no longer an extended selection
process in progress, and the logic to properly extend the selection
around the anchor gets messed up.
This is a merge of revision 1604238 from "trunk" to "branches/2.0.x".
Modified:
pivot/branches/2.0.x/ (props changed)
pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/skin/TextAreaSkin.java
Propchange: pivot/branches/2.0.x/
------------------------------------------------------------------------------
Merged /pivot/trunk:r1604238
Modified: pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/skin/TextAreaSkin.java
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/skin/TextAreaSkin.java?rev=1604243&r1=1604242&r2=1604243&view=diff
==============================================================================
--- pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/skin/TextAreaSkin.java (original)
+++ pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/skin/TextAreaSkin.java Fri Jun 20 18:55:40 2014
@@ -1084,6 +1084,7 @@ public class TextAreaSkin extends Compon
int count = Math.max(textArea.getSelectionLength(), 1);
textArea.removeText(index, count);
+ anchor = -1;
consumed = true;
}
} else if (keyCode == Keyboard.KeyCode.BACKSPACE
@@ -1099,6 +1100,7 @@ public class TextAreaSkin extends Compon
textArea.removeText(index, count);
consumed = true;
}
+ anchor = -1;
} else if (keyCode == Keyboard.KeyCode.TAB
&& (acceptsTab != ctrlPressed)
&& isEditable) {