sunrize 1.11.14 → 1.11.15

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,7 +1,7 @@
1
1
  {
2
2
  "name": "sunrize",
3
3
  "productName": "Sunrize X3D Editor",
4
- "version": "1.11.14",
4
+ "version": "1.11.15",
5
5
  "description": "A Multi-Platform X3D Editor",
6
6
  "main": "src/main.js",
7
7
  "bin": {
@@ -67,6 +67,8 @@ module .exports = class Document extends Interface
67
67
  .on ("focusin", () => this .onfocus ())
68
68
  .on ("focusout", () => this .onfocus ());
69
69
 
70
+ $(window) .on ("keydown", event => this .onkeydown (event));
71
+
70
72
  // File Menu
71
73
 
72
74
  electron .ipcRenderer .on ("open-files", (event, urls) => this .loadURL (urls [0])); // DEBUG
@@ -353,6 +355,28 @@ module .exports = class Document extends Interface
353
355
  return true;
354
356
  }
355
357
 
358
+ // Menu Accelerators Fix for Windows.
359
+
360
+ onkeydown (event)
361
+ {
362
+ switch (event .key)
363
+ {
364
+ case "a":
365
+ {
366
+ if (this .activeElementIsInputOrOutput ())
367
+ break;
368
+
369
+ if (event .ctrlKey)
370
+ {
371
+ this .sidebar .outlineEditor .selectAll ();
372
+ return false;
373
+ }
374
+
375
+ break;
376
+ }
377
+ }
378
+ }
379
+
356
380
  /*
357
381
  * File Menu
358
382
  */