Author: mareshkau
Date: 2007-10-19 04:27:14 -0400 (Fri, 19 Oct 2007)
New Revision: 4364
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
Log:
code adjustment
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2007-10-19
08:12:37 UTC (rev 4363)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2007-10-19
08:27:14 UTC (rev 4364)
@@ -750,13 +750,13 @@
//we shouldn't change selection when we click on <input type="text"
/> element,
//because if we change after resizing the input element lost selection
- if(HTML.TAG_INPUT.equalsIgnoreCase(visualDragElement.getNodeName())&&
- !HTML.ATTR_TEXT.equalsIgnoreCase(visualDragElement.getAttribute(HTML.ATTR_TYPE))
- &&visualDragElement.getAttribute(HTML.ATTR_TYPE)!=null) {
+ if(!(HTML.TAG_INPUT.equalsIgnoreCase(visualDragElement.getNodeName())&&
+ HTML.ATTR_TEXT.equalsIgnoreCase(visualDragElement.getAttribute(HTML.ATTR_TYPE))
+ &&visualDragElement.getAttribute(HTML.ATTR_TYPE)!=null)) {
- selectionBuilder.setVisualElementSelection(visualDragElement);
- }
- mouseDownSelectionFlag = true;
+ selectionBuilder.setVisualElementSelection(visualDragElement);
+ mouseDownSelectionFlag = true;
+ }
} else {
selectionBuilder.setCaretAtMouse(mouseEvent);
}
Show replies by date