@crowdin/app-project-module 0.6.2 → 0.6.3

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.
@@ -300,6 +300,17 @@
300
300
  {{#if infoModal}}
301
301
  const infoModal = document.getElementById('info-modal');
302
302
  {{/if}}
303
+
304
+ document.addEventListener('keydown', (event) => {
305
+ if (event.keyCode == 27) {
306
+ if (infoModal) {
307
+ infoModal.close();
308
+ }
309
+ if (settingsModal) {
310
+ settingsModal.close();
311
+ }
312
+ }
313
+ });
303
314
  </script>
304
315
 
305
316
  </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crowdin/app-project-module",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "Module that generates for you all common endpoints for serving standalone Crowdin App",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.ts",