[
https://issues.jboss.org/browse/JBIDE-11137?page=com.atlassian.jira.plugi...
]
Denis Maliarevich commented on JBIDE-11137:
-------------------------------------------
Finally I've got the exact reason of wrong selection:
while restoring cursor position in the visual part in method
{code:java}
SelectionManager.restoreVisualCursorPosition(VpeTemplate template,NodeData nodeData, Point
selectionRange)
{code}
nsISelection is being collapsed and then expanded in a wrong way.
While selecting text from left to right AnchorOffcet should be less than FocusOffcet,
while selecting from right to left -- vice versa. It requires calls to collapse() and
expand() methods with different args depending on the mark direction.
Selecting text using Left Arrow + Shift in VPE doesn't work
-----------------------------------------------------------
Key: JBIDE-11137
URL:
https://issues.jboss.org/browse/JBIDE-11137
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Visual Page Editor core
Environment: Linux 32 bit, JBDS
jbdevstudio-product-linux-gtk-5.0.0.v201203010100M-H88-Beta1
Reporter: Vlado Pakan
Assignee: Denis Maliarevich
Fix For: 3.3.0.Beta3
1. Create JSF 1.2 Kickstart project
2. Create new empty jsp page
3. Type some text as new page text
4. Try to select part of the text in VPE using Left Arrow + Shift longer than 1
character
FAILURE: Not possible to select text longer than 1 character
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira