diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2010-03-15 16:54:23 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2010-03-15 16:54:23 +0000 |
commit | 08cdd2e60e22933380c21502ca0a1d2e97022e8b (patch) | |
tree | 3a12869aebae8231194ae64a814da1c85523126a /src/com | |
parent | 1bbd7d0bf23848b8513968d390eff663d7014da3 (diff) | |
download | vaadin-framework-08cdd2e60e22933380c21502ca0a1d2e97022e8b.tar.gz vaadin-framework-08cdd2e60e22933380c21502ca0a1d2e97022e8b.zip |
IE now behaves with its text selection during drag and drop
svn changeset:11892/svn branch:6.3
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ui/dd/VDragAndDropManager.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/dd/VDragAndDropManager.java b/src/com/vaadin/terminal/gwt/client/ui/dd/VDragAndDropManager.java index 839b5dd7a6..fdb3c47ba3 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/dd/VDragAndDropManager.java +++ b/src/com/vaadin/terminal/gwt/client/ui/dd/VDragAndDropManager.java @@ -308,6 +308,8 @@ public class VDragAndDropManager { lazyAttachDragElement.run(); } } + // just capture something to prevent text selection in IE + Event.setCapture(RootPanel.getBodyElement()); } }; @@ -473,6 +475,10 @@ public class VDragAndDropManager { currentDrag = null; clearDragElement(); + + // release the capture (set to prevent text selection in IE) + Event.releaseCapture(RootPanel.getBodyElement()); + } private void clearDragElement() { |