]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed range selection when first selecting range starting point with mouse and then...
authorJohn Alhroos <john.ahlroos@itmill.com>
Wed, 5 May 2010 08:21:01 +0000 (08:21 +0000)
committerJohn Alhroos <john.ahlroos@itmill.com>
Wed, 5 May 2010 08:21:01 +0000 (08:21 +0000)
svn changeset:13049/svn branch:6.4

src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java

index faaa1823619d13089c9fb9c53474e1ac01ff505e..b241f2ac6eb94bf798771afd43db480b8b1f0913 100644 (file)
@@ -426,6 +426,7 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
             // Ctrl+arrows moves selection head
             else if (selectMode > SELECT_MODE_NONE && ctrlSelect
                     && !shiftSelect) {
+                selectionRangeStart = focusedRow;
                 // No selection, only selection head is moved
             }
 
@@ -3692,6 +3693,7 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
                                         deselectAll();
                                     }
 
+                                    selectionRangeStart = this;
                                     toggleSelection(multiselectmode == MULTISELECT_MODE_DEFAULT);
                                     setRowFocus(this);
                                 }