@panoramax/web-viewer 3.1.1-develop-7ba76d1c → 3.1.1-develop-38b64ee6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panoramax/web-viewer",
3
- "version": "3.1.1-develop-7ba76d1c",
3
+ "version": "3.1.1-develop-38b64ee6",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "build/index.js",
6
6
  "author": "Panoramax team",
package/src/Viewer.js CHANGED
@@ -240,6 +240,13 @@ class Viewer extends CoreView {
240
240
  }).catch(e => console.warn("Error when looking up for user names", e));
241
241
  }
242
242
  }
243
+
244
+ // Dismiss popup with Escape
245
+ document.addEventListener("keyup", e => {
246
+ if(e.key === "Escape" && !this.popupContainer.classList.contains("gvs-hidden")) {
247
+ this.setPopup(false);
248
+ }
249
+ });
243
250
  };
244
251
 
245
252
  this._api.onceReady().then(() => {