commit | 02e46ff9626bbf18ed2ad9b97eac2e1808b9926a | [log] [tgz] |
---|---|---|
author | Roger Lee Whitcomb <rwhitcomb@apache.org> | Tue Jun 21 14:46:06 2016 +0000 |
committer | Roger Lee Whitcomb <rwhitcomb@apache.org> | Tue Jun 21 14:46:06 2016 +0000 |
tree | 06891e76048055608979d88825001a3f8f3e0532 | |
parent | ea162e07d6c65a5e5193a643377db236b1c4ec11 [diff] |
Wrong positioning of cursor in TextPane when using the END key. git-svn-id: https://svn.apache.org/repos/asf/pivot/trunk@1749542 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/wtk/src/org/apache/pivot/wtk/skin/TextPaneSkin.java b/wtk/src/org/apache/pivot/wtk/skin/TextPaneSkin.java index 531e7cb..7c843c6 100644 --- a/wtk/src/org/apache/pivot/wtk/skin/TextPaneSkin.java +++ b/wtk/src/org/apache/pivot/wtk/skin/TextPaneSkin.java
@@ -942,11 +942,6 @@ selectionLength += end - index; } else { selectionStart = end; - if (selectionStart < textPane.getCharacterCount() - && document.getCharacterAt(selectionStart) == '\n') { - selectionStart--; - } - selectionLength = 0; }