added code to close the modal on esc button press

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/catalogue-sharing-widget@146738 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2017-04-11 07:54:33 +00:00
parent ac42035491
commit 76fe044e4a
1 changed files with 1 additions and 2 deletions

View File

@ -14,8 +14,6 @@ import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.DoubleClickEvent;
import com.google.gwt.event.dom.client.DoubleClickHandler;
import com.google.gwt.event.dom.client.MouseMoveEvent;
import com.google.gwt.event.dom.client.MouseMoveHandler;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.rpc.AsyncCallback;
@ -62,6 +60,7 @@ public class ShareCatalogueWidget extends Composite {
public ShareCatalogueWidget(String itemUUID) {
initWidget(uiBinder.createAndBindUi(this));
modalShareLink.show();
modalShareLink.setKeyboard(true);
ckanServices.getPackageUrl(itemUUID, new AsyncCallback<ItemUrls>() {