Author: rwhitcomb Date: Fri Jun 20 18:40:23 2014 New Revision: 1604238 URL: http://svn.apache.org/r1604238 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.
Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/TextAreaSkin.java Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/TextAreaSkin.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/TextAreaSkin.java?rev=1604238&r1=1604237&r2=1604238&view=diff ============================================================================== --- pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/TextAreaSkin.java (original) +++ pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/TextAreaSkin.java Fri Jun 20 18:40:23 2014 @@ -1087,6 +1087,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 && isEditable) { @@ -1100,6 +1101,7 @@ public class TextAreaSkin extends Compon textArea.removeText(index, count); consumed = true; } + anchor = -1; } else if (keyCode == Keyboard.KeyCode.TAB && (acceptsTab != ctrlPressed) && isEditable) { int selectionStart = textArea.getSelectionStart(); int selectionLength = textArea.getSelectionLength();